refresh the xlib keyboard stuff on mappingnotify
authorDana Jansens <danakj@orodu.net>
Fri, 19 Feb 2010 20:22:05 +0000 (15:22 -0500)
committerDana Jansens <danakj@orodu.net>
Fri, 19 Feb 2010 20:22:05 +0000 (15:22 -0500)
openbox/event.c

index 1803389..7f1150f 100644 (file)
@@ -642,6 +642,7 @@ static void event_process(const XEvent *ec, gpointer data)
         /* 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.\n");
         /* 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.\n");
+        XRefreshKeyboardMapping(&e->xmapping);
         ob_set_state(OB_STATE_RECONFIGURING);
         modkeys_shutdown(TRUE);
         modkeys_startup(TRUE);
         ob_set_state(OB_STATE_RECONFIGURING);
         modkeys_shutdown(TRUE);
         modkeys_startup(TRUE);