From fc7eaaa17db2e11e14ddc4cf55a14555482e2b71 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 8 Dec 2011 20:21:13 +0100 Subject: [PATCH] xi2: Get the effective group state by ORing the XIGroupState values --- 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 9eecb3c779..bc6261be6f 100644 --- a/gdk/x11/gdkdevice-xi2.c +++ b/gdk/x11/gdkdevice-xi2.c @@ -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);