have obt refresh the xlib keyboard stuff on mappingnotify events
Dana Jansens danakj@orodu.net
2 files changed,
3 insertions(+),
1 deletions(-)
M
obt/mainloop.c
→
obt/mainloop.c
@@ -300,6 +300,9 @@ } else if (loop->display && XPending(loop->display)) {
do { XNextEvent(loop->display, &e); + if (e.type == MappingNotify) + XRefreshKeyboardMapping(&e.xmapping); + for (it = loop->x_handlers; it; it = g_slist_next(it)) { ObtMainLoopXHandlerType *h = it->data; h->func(&e, h->data);
M
openbox/event.c
→
openbox/event.c
@@ -638,7 +638,6 @@ /* keyboard layout changes for modifier mapping changes. reload the
modifier map, and rebind all the key bindings as appropriate */ ob_debug("Keyboard map changed. Reloading keyboard bindings."); ob_set_state(OB_STATE_RECONFIGURING); - XRefreshKeyboardMapping(&e->xmapping); obt_keyboard_reload(); keyboard_rebind(); ob_set_state(OB_STATE_RUNNING);