diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2007-03-04 20:05:00 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2007-03-04 20:05:00 +0000 |
| commit | e979b388d83a48e45a6a36869f2bc87161e8a720 (patch) | |
| tree | 4c18f4168b2fbd12be71d963e7b3f7fee95ee33a /openbox/event.c | |
| parent | 191a0bc07568aca3b85e4b4789b7dc4d3733742f (diff) | |
use the X protocol to reconfigure instead of signals, works over the network too
Diffstat (limited to 'openbox/event.c')
| -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 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: |
