summaryrefslogtreecommitdiff
path: root/openbox/actions/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/actions/exit.c')
-rw-r--r--openbox/actions/exit.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/openbox/actions/exit.c b/openbox/actions/exit.c
new file mode 100644
index 00000000..68b5cef4
--- /dev/null
+++ b/openbox/actions/exit.c
@@ -0,0 +1,20 @@
+#include "openbox/actions.h"
+#include "openbox/openbox.h"
+
+static gboolean run_func(ObActionsData *data, gpointer options);
+
+void action_exit_startup()
+{
+ actions_register("Exit",
+ NULL, NULL,
+ run_func,
+ NULL, NULL);
+}
+
+/* Always return FALSE because its not interactive */
+static gboolean run_func(ObActionsData *data, gpointer options)
+{
+ ob_exit(0);
+
+ return FALSE;
+}