summaryrefslogtreecommitdiff
path: root/obt
diff options
context:
space:
mode:
Diffstat (limited to 'obt')
-rw-r--r--obt/mainloop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/obt/mainloop.c b/obt/mainloop.c
index bf866aec..ebc9e96a 100644
--- a/obt/mainloop.c
+++ b/obt/mainloop.c
@@ -300,6 +300,9 @@ void obt_main_loop_run(ObtMainLoop *loop)
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);