mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
keybindings: Properly interpret keybindings
We need to compare against the keysym, not the keycode.
This commit is contained in:
parent
40b1e7312d
commit
6c0e16c482
@ -1862,7 +1862,7 @@ process_event (MetaKeyBinding *bindings,
|
|||||||
MetaKeyHandler *handler = bindings[i].handler;
|
MetaKeyHandler *handler = bindings[i].handler;
|
||||||
|
|
||||||
if ((!on_window && handler->flags & META_KEY_BINDING_PER_WINDOW) ||
|
if ((!on_window && handler->flags & META_KEY_BINDING_PER_WINDOW) ||
|
||||||
bindings[i].keycode != event->keyval ||
|
(event->keyval != bindings[i].keysym) ||
|
||||||
(event->modifier_state != bindings[i].mask) ||
|
(event->modifier_state != bindings[i].mask) ||
|
||||||
meta_compositor_filter_keybinding (display->compositor, screen, &bindings[i]))
|
meta_compositor_filter_keybinding (display->compositor, screen, &bindings[i]))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user