diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-11 11:42:09 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-11 11:42:09 -0500 |
| commit | 5a468756c07a43e0ee7fa4e406847c86db09834a (patch) | |
| tree | 74edf65ca670f8542d1dd85c3cfac2a43ea8c7be | |
| parent | 8a51893e8bf2192eec69eeed9bc49beb78e34312 (diff) | |
reconfigure openbox when the input mapping changes, eg. keyboard layout or modifier map
| -rw-r--r-- | openbox/event.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbox/event.c b/openbox/event.c index 5e44bc9f..41bcd350 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -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. */ |
