]> Dogcows Code - chaz/openbox/commitdiff
reconfigure openbox when the input mapping changes, eg. keyboard layout or modifier map
authorDana Jansens <danakj@orodu.net>
Fri, 11 Jan 2008 16:42:09 +0000 (11:42 -0500)
committerDana Jansens <danakj@orodu.net>
Fri, 11 Jan 2008 16:42:09 +0000 (11:42 -0500)
openbox/event.c

index 5e44bc9f5af9b70f938ace7fc546de11d440e685..41bcd350b3b9cfd01fba02dda297b06546f62c45 100644 (file)
@@ -619,6 +619,11 @@ static void event_process(const XEvent *ec, gpointer data)
         event_handle_root(e);
     else if (e->type == MapRequest)
         client_manage(window);
+    else if (e->type == MappingNotify) {
+        /* keyboard layout changes, reconfigure openbox. need to restart the
+           modkeys system, but also to reload the key bindings. */
+        ob_reconfigure();
+    }
     else if (e->type == ClientMessage) {
         /* This is for _NET_WM_REQUEST_FRAME_EXTENTS messages. They come for
            windows that are not managed yet. */
This page took 0.024086 seconds and 4 git commands to generate.