get xlib to reload the keyboard on MappingNotify events
This commit is contained in:
parent
c745d0573a
commit
e83803b8b0
1 changed files with 1 additions and 0 deletions
|
@ -648,6 +648,7 @@ static void event_process(const XEvent *ec, gpointer data)
|
||||||
modifier map, and rebind all the key bindings as appropriate */
|
modifier map, and rebind all the key bindings as appropriate */
|
||||||
ob_debug("Keyboard map changed. Reloading keyboard bindings.");
|
ob_debug("Keyboard map changed. Reloading keyboard bindings.");
|
||||||
ob_set_state(OB_STATE_RECONFIGURING);
|
ob_set_state(OB_STATE_RECONFIGURING);
|
||||||
|
XRefreshKeyboardMapping(&e->xmapping);
|
||||||
obt_keyboard_reload();
|
obt_keyboard_reload();
|
||||||
keyboard_rebind();
|
keyboard_rebind();
|
||||||
ob_set_state(OB_STATE_RUNNING);
|
ob_set_state(OB_STATE_RUNNING);
|
||||||
|
|
Loading…
Reference in a new issue