forked from AuroraMiddleware/gtk
mir: compute the modifiers using the saved button_state on key events
This commit is contained in:
parent
7d4066de41
commit
9e2eb5d2f6
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user