1 #include "openbox/actions.h"
2 #include "openbox/stacking.h"
3 
4 static gboolean run_func(ObActionsData *data, gpointer options);
5 
action_raiselower_startup(void)6 void action_raiselower_startup(void)
7 {
8     actions_register("RaiseLower", NULL, NULL, run_func);
9 }
10 
11 /* Always return FALSE because its not interactive */
run_func(ObActionsData * data,gpointer options)12 static gboolean run_func(ObActionsData *data, gpointer options)
13 {
14     if (data->client) {
15         actions_client_move(data, TRUE);
16         stacking_restack_request(data->client, NULL, Opposite);
17         actions_client_move(data, FALSE);
18     }
19 
20     return FALSE;
21 }
22