add restart and exit actions
Dana Jansens danakj@orodu.net
2 files changed,
16 insertions(+),
0 deletions(-)
M
openbox/action.c
→
openbox/action.c
@@ -4,6 +4,7 @@ #include "frame.h"
#include "screen.h" #include "action.h" #include "dispatch.h" +#include "openbox.h" #include <glib.h>@@ -425,3 +426,14 @@
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; +}
M
openbox/action.h
→
openbox/action.h
@@ -161,5 +161,9 @@ /* Move */
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