]> Dogcows Code - chaz/openbox/blobdiff - openbox/event.c
scary commit..but here goes.
[chaz/openbox] / openbox / event.c
index daf87f54a1f8fed0a1df463258d24ac0c481ba7e..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] == 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);
+            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.025099 seconds and 4 git commands to generate.