xi2: Get the effective group state by ORing the XIGroupState values

This commit is contained in:
Carlos Garnacho
2011-12-08 20:21:13 +01:00
parent 62c32d742e
commit 5d2c04b9d1

View 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);