Skip to content
Permalink
Browse files

Fix mismatched enums in keybinding detection for switch-panels and sw…

…itch-panels-backward
  • Loading branch information...
vkareh committed Mar 7, 2018
1 parent 42410fe commit 03cffa36b4c89532873848064ef595e5d0ac9b9c
Showing with 6 additions and 0 deletions.
  1. +4 −0 src/core/keybindings.c
  2. +2 −0 src/include/prefs.h
@@ -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.
*/
@@ -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;
@@ -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,

0 comments on commit 03cffa3

Please sign in to comment.
You can’t perform that action at this time.