From a5c2aadf2778d6ab4105abd457cd2ab21a1172ec Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 22 Jun 2007 14:28:21 +0000 Subject: add lower and raiselower actions --- openbox/actions/lower.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 openbox/actions/lower.c (limited to 'openbox/actions/lower.c') diff --git a/openbox/actions/lower.c b/openbox/actions/lower.c new file mode 100644 index 00000000..1abf5903 --- /dev/null +++ b/openbox/actions/lower.c @@ -0,0 +1,24 @@ +#include "openbox/actions.h" +#include "openbox/stacking.h" + +static gboolean run_func(ObActionsData *data, gpointer options); + +void action_lower_startup() +{ + actions_register("Lower", + NULL, NULL, + run_func, + NULL, NULL); +} + +/* Always return FALSE because its not interactive */ +static gboolean run_func(ObActionsData *data, gpointer options) +{ + if (data->client) { + actions_client_move(data, TRUE); + stacking_lower(CLIENT_AS_WINDOW(data->client)); + actions_client_move(data, FALSE); + } + + return FALSE; +} -- cgit v1.2.3