diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-20 01:34:58 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-20 01:36:56 -0500 |
| commit | ea481338b5f16fd81a7b33e036ead39b918a51af (patch) | |
| tree | 93fcb3de5afdec06c6f21d344c4e9f046bf2804d /openbox/event.c | |
| parent | 8439c393d8c1dfb7db5cebd57d2e1e084e60234a (diff) | |
make the obt library branch compile again with all the changes merged in from backport
Diffstat (limited to 'openbox/event.c')
| -rw-r--r-- | openbox/event.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/openbox/event.c b/openbox/event.c index 79ead346..bbaf11c5 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -644,8 +644,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("Kepboard map changed. Reloading keyboard bindings.\n"); - modkeys_shutdown(TRUE); - modkeys_startup(TRUE); + obt_keyboard_reload(); keyboard_rebind(); } else if (e->type == ClientMessage) { @@ -769,8 +768,8 @@ static void event_handle_root(XEvent *e) ob_restart(); else if (e->xclient.data.l[0] == 3) ob_exit(0); - } else if (msgtype == prop_atoms.wm_protocols) { - if ((Atom)e->xclient.data.l[0] == prop_atoms.net_wm_ping) + } else if (msgtype == OBT_PROP_ATOM(WM_PROTOCOLS)) { + if ((Atom)e->xclient.data.l[0] == OBT_PROP_ATOM(NET_WM_PING)) ping_got_pong(e->xclient.data.l[1]); } break; |
