summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2007-03-04 20:32:47 +0000
committerMikael Magnusson <mikachu@comhem.se>2007-03-04 20:32:47 +0000
commit7fdfb9dbf63a6d3b4d0e682b789bc541c8de09b7 (patch)
treef902f290bf61646c076447f30704d49a47e5186f /openbox/event.c
parent2f87655790f16d3c64a62b6e8d727bf7664b92da (diff)
use ob_reconfigure/restart directly instead of actions and save a variable
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 1e228eff..b978f563 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -598,9 +598,9 @@ static void event_handle_root(XEvent *e)
screen_show_desktop(e->xclient.data.l[0] != 0);
} else if (msgtype == prop_atoms.ob_control) {
if ((Atom)e->xclient.data.l[0] == 1)
- action_run_string("reconfigure", NULL);
+ ob_reconfigure();
else if ((Atom)e->xclient.data.l[0] == 2)
- action_run_string("restart", NULL);
+ ob_restart();
}
break;
case PropertyNotify: