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

@ -38,7 +38,8 @@ typedef struct _ClutterInputDeviceXI2 ClutterInputDeviceXI2;
GType _clutter_input_device_xi2_get_type (void) G_GNUC_CONST;
guint _clutter_input_device_xi2_translate_state (XIModifierState *modifiers_state,
XIButtonState *buttons_state);
XIButtonState *buttons_state,
XIGroupState *group_state);
G_END_DECLS