From 8d8654db021732f9a67314b0dcd0cf1c89be7f44 Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Thu, 5 Mar 2026 15:01:58 +0100 Subject: [PATCH] action: sync action arrays The previous commit desynchronized the action type arrays causing Move operations to be treated as Raise actions. Fixes: #3398 Reported-By: Domo via IRC --- src/action.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/action.c b/src/action.c index a195f67c..6d8c8419 100644 --- a/src/action.c +++ b/src/action.c @@ -68,6 +68,7 @@ struct action_arg_list { struct wl_list value; }; +/* Warning: Any change in this enum needs to be reflected in the action_names[] array below */ enum action_type { ACTION_TYPE_INVALID = 0, ACTION_TYPE_NONE, @@ -137,6 +138,7 @@ enum action_type { ACTION_TYPE_HIDE_CURSOR, }; +/* Warning: Any change in this array needs to be reflected in the action_type enum above */ const char *action_names[] = { "INVALID", "None", @@ -166,9 +168,9 @@ const char *action_names[] = { "Focus", "Unfocus", "Iconify", - "Move", "Raise", "Lower", + "Move", "Resize", "ResizeRelative", "MoveTo",