]> Pileus Git - ~andy/gtk/commitdiff
x11: Simplify XI2 mods state
authorBastien Nocera <hadess@hadess.net>
Wed, 29 Feb 2012 16:18:57 +0000 (16:18 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 4 Mar 2012 06:12:06 +0000 (01:12 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=671070

gdk/x11/gdkdevice-xi2.c

index 80aa0b0d74369a7933c25dd98950b7f2f2c42218..6e496261ebbe6ca3792dfb5e630b3e6c79950ea2 100644 (file)
@@ -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)
     {