keybindings: Properly interpret keybindings

We need to compare against the keysym, not the keycode.
This commit is contained in:
Jasper St. Pierre 2013-11-20 17:22:40 -05:00
parent 40b1e7312d
commit 6c0e16c482

View File

@ -1862,7 +1862,7 @@ process_event (MetaKeyBinding *bindings,
MetaKeyHandler *handler = bindings[i].handler;
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) ||
meta_compositor_filter_keybinding (display->compositor, screen, &bindings[i]))
continue;