x11/xi2: Factor the XKB group state in to fill events' modifier_state

Otherwise XkbTranslateKeyCode() won't yeld the correct keysyms when
group > 1.

https://bugzilla.gnome.org/show_bug.cgi?id=695260
This commit is contained in:
Rui Matos
2013-03-06 01:30:52 +01:00
parent ccea1644ba
commit 40ef7a5f6e
3 changed files with 20 additions and 9 deletions

View File

@ -158,7 +158,8 @@ clutter_input_device_xi2_init (ClutterInputDeviceXI2 *self)
guint
_clutter_input_device_xi2_translate_state (XIModifierState *modifiers_state,
XIButtonState *buttons_state)
XIButtonState *buttons_state,
XIGroupState *group_state)
{
guint retval = 0;
@ -204,5 +205,8 @@ _clutter_input_device_xi2_translate_state (XIModifierState *modifiers_state,
}
}
if (group_state)
retval |= (group_state->effective) << 13;
return retval;
}