From e979b388d83a48e45a6a36869f2bc87161e8a720 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sun, 4 Mar 2007 20:05:00 +0000 Subject: use the X protocol to reconfigure instead of signals, works over the network too --- openbox/event.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openbox/event.c') diff --git a/openbox/event.c b/openbox/event.c index 42fd26ba..daf87f54 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -596,6 +596,11 @@ static void event_handle_root(XEvent *e) screen_set_num_desktops(d); } else if (msgtype == prop_atoms.net_showing_desktop) { screen_show_desktop(e->xclient.data.l[0] != 0); + } else if (msgtype == prop_atoms.ob_control) { + if ((Atom)e->xclient.data.l[0] == prop_atoms.ob_reconfigure) + action_run_string("reconfigure", NULL); + else if ((Atom)e->xclient.data.l[0] == prop_atoms.ob_restart) + action_run_string("restart", NULL); } break; case PropertyNotify: -- cgit v1.2.3