Commit 9e2eb5d2 authored by Marco Trevisan (Treviño)'s avatar Marco Trevisan (Treviño) Committed by William Hua

mir: compute the modifiers using the saved button_state on key events

parent 7d4066de
......@@ -258,10 +258,13 @@ get_modifier_state (unsigned int modifiers, unsigned int button_state)
static void
handle_key_event (GdkWindow *window, const MirKeyEvent *event)
GdkMirWindowImpl *impl = GDK_MIR_WINDOW_IMPL (window->impl);
guint modifier_state;
MirMotionButton button_state;
gboolean is_modifier = FALSE;
modifier_state = get_modifier_state (event->modifiers, 0); // FIXME: Need to track button state
_gdk_mir_window_impl_get_cursor_state (impl, NULL, NULL, NULL, &button_state);
modifier_state = get_modifier_state (event->modifiers, button_state);
switch (event->action)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment