X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fevent.c;h=6314c9f79640029f614f4f8c2e0991550e7c1ec7;hb=1fdb434f5ddac7280676fbe91bed8a3d4d21b850;hp=1e228eff09bd716564fc188c315dafe5d512b3f1;hpb=e06e69b9045972efc19faba443e9cee8c7cc81ef;p=chaz%2Fopenbox diff --git a/openbox/event.c b/openbox/event.c index 1e228eff..6314c9f7 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -597,10 +597,10 @@ static void event_handle_root(XEvent *e) } 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] == 1) - action_run_string("reconfigure", NULL); - else if ((Atom)e->xclient.data.l[0] == 2) - action_run_string("restart", NULL); + if (e->xclient.data.l[0] == 1) + ob_reconfigure(); + else if (e->xclient.data.l[0] == 2) + ob_restart(); } break; case PropertyNotify: