]> icculus.org git repositories - dana/openbox.git/blob - openbox/actions/lower.c
Add action_list_run.c/h with action_list_run() and struct ObActionListRun.
[dana/openbox.git] / openbox / actions / lower.c
1 #include "openbox/action.h"
2 #include "openbox/action_list_run.h"
3 #include "openbox/stacking.h"
4 #include "openbox/window.h"
5
6 static gboolean run_func(const ObActionListRun *data, gpointer options);
7
8 void action_lower_startup(void)
9 {
10     action_register("Lower", OB_ACTION_DEFAULT_FILTER_SINGLE,
11                     NULL, NULL, run_func);
12 }
13
14 /* Always return FALSE because its not interactive */
15 static gboolean run_func(const ObActionListRun *data, gpointer options)
16 {
17     if (data->client) {
18         action_client_move(data, TRUE);
19         stacking_lower(CLIENT_AS_WINDOW(data->client));
20         action_client_move(data, FALSE);
21     }
22
23     return FALSE;
24 }