forked from enlightenment/enlightenment
update xkb.cur_group and send event upon serializing an EFFECTIVE layout in wl input
according to xkbcommon, the group returned from serializing the EFFECTIVE layout is the one which is currently active. this array index should match up with the list used in the xkb part of E_Config
This commit is contained in:
parent
8678e01ce9
commit
d6772d8911
|
@ -522,6 +522,11 @@ e_comp_wl_input_keyboard_modifiers_serialize(void)
|
||||||
|
|
||||||
grp = xkb_state_serialize_layout(e_comp_wl->xkb.state,
|
grp = xkb_state_serialize_layout(e_comp_wl->xkb.state,
|
||||||
XKB_STATE_LAYOUT_EFFECTIVE);
|
XKB_STATE_LAYOUT_EFFECTIVE);
|
||||||
|
if (grp != e_comp_wl->kbd.mod_group)
|
||||||
|
{
|
||||||
|
e_config->xkb.cur_group = grp;
|
||||||
|
ecore_event_add(E_EVENT_XKB_CHANGED, NULL, NULL, NULL);
|
||||||
|
}
|
||||||
changed |= grp != e_comp_wl->kbd.mod_group;
|
changed |= grp != e_comp_wl->kbd.mod_group;
|
||||||
e_comp_wl->kbd.mod_group = grp;
|
e_comp_wl->kbd.mod_group = grp;
|
||||||
return changed;
|
return changed;
|
||||||
|
|
Loading…
Reference in New Issue