evdev: fix xkb_state handling
We must pass X11 keycodes, not evdev ones, to libxkbcommon, otherwise the modifier state is wrong. https://bugzilla.gnome.org/show_bug.cgi?id=705710
This commit is contained in:
parent
a3557f7a2f
commit
d844cf5462
@ -177,7 +177,7 @@ notify_key (ClutterEventSource *source,
|
|||||||
stage,
|
stage,
|
||||||
source->xkb,
|
source->xkb,
|
||||||
time_, key, state);
|
time_, key, state);
|
||||||
xkb_state_update_key (source->xkb, key, state ? XKB_KEY_DOWN : XKB_KEY_UP);
|
xkb_state_update_key (source->xkb, event->key.hardware_keycode, state ? XKB_KEY_DOWN : XKB_KEY_UP);
|
||||||
}
|
}
|
||||||
|
|
||||||
queue_event (event);
|
queue_event (event);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user