Skip to content

Commit

Permalink
Fix mismatched enums in keybinding detection for switch-panels and sw…
Browse files Browse the repository at this point in the history
…itch-panels-backward
  • Loading branch information
vkareh committed Mar 8, 2018
1 parent 42410fe commit 03cffa3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/keybindings.c
Original file line number Diff line number Diff line change
Expand Up @@ -2144,8 +2144,10 @@ process_tab_grab (MetaDisplay *display,
break;
case META_KEYBINDING_ACTION_SWITCH_PANELS:
case META_KEYBINDING_ACTION_SWITCH_WINDOWS:
case META_KEYBINDING_ACTION_SWITCH_WINDOWS_ALL:
case META_KEYBINDING_ACTION_SWITCH_PANELS_BACKWARD:
case META_KEYBINDING_ACTION_SWITCH_WINDOWS_BACKWARD:
case META_KEYBINDING_ACTION_SWITCH_WINDOWS_ALL_BACKWARD:
/* SWITCH_* are traditionally Tab-based actions,
* and should cancel traditionally Escape-based ones.
*/
Expand Down Expand Up @@ -2217,11 +2219,13 @@ process_tab_grab (MetaDisplay *display,
break;
case META_KEYBINDING_ACTION_SWITCH_PANELS:
case META_KEYBINDING_ACTION_SWITCH_WINDOWS:
case META_KEYBINDING_ACTION_SWITCH_WINDOWS_ALL:
case META_KEYBINDING_ACTION_SWITCH_GROUP:
key_used = TRUE;
break;
case META_KEYBINDING_ACTION_SWITCH_PANELS_BACKWARD:
case META_KEYBINDING_ACTION_SWITCH_WINDOWS_BACKWARD:
case META_KEYBINDING_ACTION_SWITCH_WINDOWS_ALL_BACKWARD:
case META_KEYBINDING_ACTION_SWITCH_GROUP_BACKWARD:
key_used = TRUE;
backward = TRUE;
Expand Down
2 changes: 2 additions & 0 deletions src/include/prefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ typedef enum _MetaKeyBindingAction
META_KEYBINDING_ACTION_SWITCH_GROUP_BACKWARD,
META_KEYBINDING_ACTION_SWITCH_WINDOWS,
META_KEYBINDING_ACTION_SWITCH_WINDOWS_BACKWARD,
META_KEYBINDING_ACTION_SWITCH_WINDOWS_ALL,
META_KEYBINDING_ACTION_SWITCH_WINDOWS_ALL_BACKWARD,
META_KEYBINDING_ACTION_SWITCH_PANELS,
META_KEYBINDING_ACTION_SWITCH_PANELS_BACKWARD,
META_KEYBINDING_ACTION_CYCLE_GROUP,
Expand Down

0 comments on commit 03cffa3

Please sign in to comment.