[gtk+/xi2: 665/1239] Use mods_state->effective, since that's the equivalent to the core protocol.



commit 843aff6b8d3e39f8e4537f1c10a340f2e5516ea4
Author: Carlos Garnacho <carlos lanedo com>
Date:   Fri Jul 31 12:56:37 2009 +0200

    Use mods_state->effective, since that's the equivalent to the core protocol.

 gdk/x11/gdkdevicemanager-xi2.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c
index c03bb9b..c26f593 100644
--- a/gdk/x11/gdkdevicemanager-xi2.c
+++ b/gdk/x11/gdkdevicemanager-xi2.c
@@ -456,10 +456,7 @@ translate_state (XIModifierState *mods_state,
   guint state = 0;
 
   if (mods_state)
-    {
-      /* FIXME: What is mods_state->latched for? */
-      state = ((guint) mods_state->base | (guint) mods_state->locked);
-    }
+    state = (guint) mods_state->effective;
 
   if (buttons_state)
     {



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