]> Dogcows Code - chaz/openbox/blobdiff - openbox/event.c
scary commit..but here goes.
[chaz/openbox] / openbox / event.c
index 1e228eff09bd716564fc188c315dafe5d512b3f1..6314c9f79640029f614f4f8c2e0991550e7c1ec7 100644 (file)
@@ -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:
This page took 0.023821 seconds and 4 git commands to generate.