From f3b899fc838ef090ab174a4135fa179ca8422d28 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 29 Feb 2012 16:18:57 +0000 Subject: [PATCH] x11: Simplify XI2 mods state https://bugzilla.gnome.org/show_bug.cgi?id=671070 --- gdk/x11/gdkdevice-xi2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/x11/gdkdevice-xi2.c b/gdk/x11/gdkdevice-xi2.c index 80aa0b0d74..6e496261eb 100644 --- a/gdk/x11/gdkdevice-xi2.c +++ b/gdk/x11/gdkdevice-xi2.c @@ -745,7 +745,7 @@ _gdk_x11_device_xi2_translate_state (XIModifierState *mods_state, guint state = 0; if (mods_state) - state = (guint) mods_state->base | mods_state->latched | mods_state->locked; + state = mods_state->effective; if (buttons_state) {