forked from enlightenment/enlightenment
only init E_EVENT_XKB_CHANGED during xkb init if xkb init hasn't already occurred
allows xkb init to be called repeatedly
This commit is contained in:
parent
81ea29a715
commit
f1faab997f
|
@ -32,7 +32,8 @@ _e_xkb_init_timer(void *data)
|
|||
E_API int
|
||||
e_xkb_init(void)
|
||||
{
|
||||
E_EVENT_XKB_CHANGED = ecore_event_type_new();
|
||||
if (!E_EVENT_XKB_CHANGED)
|
||||
E_EVENT_XKB_CHANGED = ecore_event_type_new();
|
||||
if (e_config->xkb.dont_touch_my_damn_keyboard) return 1;
|
||||
e_xkb_update(-1);
|
||||
if (e_config->xkb.cur_layout)
|
||||
|
|
Loading…
Reference in New Issue