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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user