XKBswitch gadget: Make sure to update the wayland keymap index.

Fixes T6321
This commit is contained in:
Stephen 'Okra' Houston 2019-01-16 13:24:49 -05:00
parent 1527599b78
commit b90d8024fa
2 changed files with 12 additions and 0 deletions

View File

@ -519,5 +519,11 @@ _e_xkb_cb_lmenu_set(void *data, E_Menu *mn EINA_UNUSED, E_Menu_Item *mi EINA_UNU
e_xkb_layout_set(cl);
e_config_xkb_layout_free(e_config->xkb.sel_layout);
e_config->xkb.sel_layout = e_config_xkb_layout_dup(cl);
if (e_comp->comp_type == E_PIXMAP_TYPE_WL)
#ifdef HAVE_WAYLAND
e_comp_wl_input_keymap_index_set(cur_group);
#else
(void)cur_group;
#endif
}

View File

@ -104,6 +104,12 @@ _xkbg_cb_menu_set(void *data, Evas_Object *obj, void *event_data EINA_UNUSED)
e_xkb_layout_set(cl);
e_config_xkb_layout_free(e_config->xkb.sel_layout);
e_config->xkb.sel_layout = e_config_xkb_layout_dup(cl);
if (e_comp->comp_type == E_PIXMAP_TYPE_WL)
#ifdef HAVE_WAYLAND
e_comp_wl_input_keymap_index_set(cur_group);
#else
(void)cur_group;
#endif
}
static void