summaryrefslogtreecommitdiff
path: root/openbox/action.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-24 00:01:55 +0000
committerDana Jansens <danakj@orodu.net>2003-03-24 00:01:55 +0000
commit4a6e98cad8dc8a8ca4006886615f4c4a7a80b02a (patch)
treeb39b44bc5330c17e0764d8f19911cde3391bd0e5 /openbox/action.c
parent687559cb2d8fce88d0d26223bb9468414a862ab7 (diff)
add restart and exit actions
Diffstat (limited to 'openbox/action.c')
-rw-r--r--openbox/action.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/openbox/action.c b/openbox/action.c
index 3e463d66..cf2c0307 100644
--- a/openbox/action.c
+++ b/openbox/action.c
@@ -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;
+}