X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Faction.c;h=cf2c03079e9d715f94bc2945941950a31ffbad8a;hb=7bb829f8b721b8b5a75740b2686fa12f63a798ff;hp=3e463d668732643037b45ff89aa131e3ecd4e4a5;hpb=9b514b3b6165c80cfe7152c2088a97765f6c82f4;p=chaz%2Fopenbox 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; +}