Commit 8453ac6b authored by Carlos Garnacho's avatar Carlos Garnacho Committed by Emmanuele Bassi

evdev: Set button modifier state to input devices.

Input devices must get the proper button state, in addition to keyboard
(cherry picked from commit f6fd0297)
Signed-off-by: 's avatarEmmanuele Bassi <>
parent fbf45952
......@@ -577,7 +577,8 @@ clutter_event_dispatch (GSource *g_source,
_clutter_stage_queue_event (event->any.stage, event, FALSE);
/* update the device states *after* the event */
event_state = xkb_state_serialize_mods (seat->xkb, XKB_STATE_MODS_EFFECTIVE);
event_state = seat->button_state |
xkb_state_serialize_mods (seat->xkb, XKB_STATE_MODS_EFFECTIVE);
_clutter_input_device_set_state (seat->core_pointer, event_state);
_clutter_input_device_set_state (seat->core_keyboard, event_state);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment