]> Pileus Git - ~andy/gtk/commitdiff
xi2: Get the effective group state by ORing the XIGroupState values
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 8 Dec 2011 19:21:13 +0000 (20:21 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 23 Feb 2012 21:46:00 +0000 (16:46 -0500)
gdk/x11/gdkdevice-xi2.c

index 9eecb3c779570b52cf274f6117c8a57344b37976..bc6261be6f9f6f2de295204a280c50ab906f4435 100644 (file)
@@ -742,7 +742,7 @@ _gdk_x11_device_xi2_translate_state (XIModifierState *mods_state,
     {
       gint group;
 
-      group = group_state->base + group_state->latched + group_state->locked;
+      group = group_state->base | group_state->latched | group_state->locked;
 
       /* FIXME: do we need the XKB complications for this ? */
       group = CLAMP(group, 0, 3);