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
This commit is contained in:
Consolatis 2026-03-05 15:01:58 +01:00 committed by Hiroaki Yamamoto
parent d6dab9139f
commit 8d8654db02

View file

@ -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",