]> Dogcows Code - chaz/openbox/commitdiff
add restart and exit actions
authorDana Jansens <danakj@orodu.net>
Mon, 24 Mar 2003 00:01:55 +0000 (00:01 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 24 Mar 2003 00:01:55 +0000 (00:01 +0000)
openbox/action.c
openbox/action.h

index 3e463d668732643037b45ff89aa131e3ecd4e4a5..cf2c03079e9d715f94bc2945941950a31ffbad8a 100644 (file)
@@ -4,6 +4,7 @@
 #include "screen.h"
 #include "action.h"
 #include "dispatch.h"
+#include "openbox.h"
 
 #include <glib.h>
 
@@ -425,3 +426,14 @@ void action_resize(union ActionData *data)
     client_configure(c, data->resize.corner, c->area.x, c->area.y, w, h,
                      TRUE, data->resize.final);
 }
+
+void action_restart(union ActionData *data)
+{
+    ob_restart_path = data->execute.path;
+    ob_shutdown = ob_restart = TRUE;
+}
+
+void action_exit(union ActionData *data)
+{
+    ob_shutdown = TRUE;
+}
index cf6f633e18fa6cce1b83df9caf430c30410a75ef..5208025140b8c314c0d16330752d0c99d1946a27 100644 (file)
@@ -161,5 +161,9 @@ void action_toggle_decorations(union ActionData *data);
 void action_move(union ActionData *data);
 /* Resize */
 void action_resize(union ActionData *data);
+/* Execute */
+void action_restart(union ActionData *data);
+/* Any */
+void action_exit(union ActionData *data);
 
 #endif
This page took 0.023601 seconds and 4 git commands to generate.