diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-22 14:28:21 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-22 14:28:21 +0000 |
| commit | a5c2aadf2778d6ab4105abd457cd2ab21a1172ec (patch) | |
| tree | 53b7e1731fef9a96d5a3b77e28414f2538f25f38 /openbox/actions/raiselower.c | |
| parent | a07465f376b0a33270532501127ec812efe2c2b2 (diff) | |
add lower and raiselower actions
Diffstat (limited to 'openbox/actions/raiselower.c')
| -rw-r--r-- | openbox/actions/raiselower.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/openbox/actions/raiselower.c b/openbox/actions/raiselower.c new file mode 100644 index 00000000..f75410ac --- /dev/null +++ b/openbox/actions/raiselower.c @@ -0,0 +1,24 @@ +#include "openbox/actions.h" +#include "openbox/stacking.h" + +static gboolean run_func(ObActionsData *data, gpointer options); + +void action_raiselower_startup() +{ + actions_register("RaiseLower", + 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_restack_request(data->client, NULL, Opposite); + actions_client_move(data, FALSE); + } + + return FALSE; +} |
