X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fopenbox;a=blobdiff_plain;f=obt%2Fmainloop.c;h=ebc9e96a8260a4a0be3f49fb033d29da3ab5b2be;hp=bf866aec5e250deda309cecd2bd8b371a763e583;hb=98c86118ca941d71c0c511c865d5913814012aed;hpb=7c2eb3a781b4434d243b3d135e3dc1ce288cf464 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);