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 committed by Matthias Clasen
parent 5b014bfdfb
commit 3ccf4e0896

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