[gtk+/gtk-3-2] x11: Simplify XI2 mods state



commit 7fc62a0e9c68a4bb655e5b7d514d40fa5832dae1
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Feb 29 16:18:57 2012 +0000

    x11: Simplify XI2 mods state
    
    https://bugzilla.gnome.org/show_bug.cgi?id=671070

 gdk/x11/gdkdevice-xi2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkdevice-xi2.c b/gdk/x11/gdkdevice-xi2.c
index 6f4eeaa..a18b99d 100644
--- a/gdk/x11/gdkdevice-xi2.c
+++ b/gdk/x11/gdkdevice-xi2.c
@@ -701,7 +701,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)
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]