From 4a6e98cad8dc8a8ca4006886615f4c4a7a80b02a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 24 Mar 2003 00:01:55 +0000 Subject: [PATCH] add restart and exit actions --- openbox/action.c | 12 ++++++++++++ openbox/action.h | 4 ++++ 2 files changed, 16 insertions(+) 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 @@ -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; +} diff --git a/openbox/action.h b/openbox/action.h index cf6f633e..52080251 100644 --- a/openbox/action.h +++ b/openbox/action.h @@ -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 -- 2.45.2