mirror of
https://github.com/labwc/labwc.git
synced 2026-03-17 05:33:47 -04:00
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:
parent
d6dab9139f
commit
8d8654db02
1 changed files with 3 additions and 1 deletions
|
|
@ -68,6 +68,7 @@ struct action_arg_list {
|
||||||
struct wl_list value;
|
struct wl_list value;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Warning: Any change in this enum needs to be reflected in the action_names[] array below */
|
||||||
enum action_type {
|
enum action_type {
|
||||||
ACTION_TYPE_INVALID = 0,
|
ACTION_TYPE_INVALID = 0,
|
||||||
ACTION_TYPE_NONE,
|
ACTION_TYPE_NONE,
|
||||||
|
|
@ -137,6 +138,7 @@ enum action_type {
|
||||||
ACTION_TYPE_HIDE_CURSOR,
|
ACTION_TYPE_HIDE_CURSOR,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Warning: Any change in this array needs to be reflected in the action_type enum above */
|
||||||
const char *action_names[] = {
|
const char *action_names[] = {
|
||||||
"INVALID",
|
"INVALID",
|
||||||
"None",
|
"None",
|
||||||
|
|
@ -166,9 +168,9 @@ const char *action_names[] = {
|
||||||
"Focus",
|
"Focus",
|
||||||
"Unfocus",
|
"Unfocus",
|
||||||
"Iconify",
|
"Iconify",
|
||||||
"Move",
|
|
||||||
"Raise",
|
"Raise",
|
||||||
"Lower",
|
"Lower",
|
||||||
|
"Move",
|
||||||
"Resize",
|
"Resize",
|
||||||
"ResizeRelative",
|
"ResizeRelative",
|
||||||
"MoveTo",
|
"MoveTo",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue