all repos — openbox @ 4a6e98cad8dc8a8ca4006886615f4c4a7a80b02a

openbox fork - make it a bit more like ryudo

add restart and exit actions
Dana Jansens danakj@orodu.net
commit

4a6e98cad8dc8a8ca4006886615f4c4a7a80b02a

parent

687559cb2d8fce88d0d26223bb9468414a862ab7

2 files changed, 16 insertions(+), 0 deletions(-)

jump to
M openbox/action.copenbox/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.hopenbox/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