Make it possible for an action name to choose whether it is interactive or not based...
[dana/openbox.git] / openbox / actions / lower.c
1 #include "openbox/actions.h"
2 #include "openbox/stacking.h"
3 #include "openbox/window.h"
4
5 static gboolean run_func(ObActionsData *data, gpointer options);
6
7 void action_lower_startup(void)
8 {
9     actions_register("Lower",
10                      NULL, NULL,
11                      run_func);
12 }
13
14 /* Always return FALSE because its not interactive */
15 static gboolean run_func(ObActionsData *data, gpointer options)
16 {
17     if (data->client) {
18         actions_client_move(data, TRUE);
19         stacking_lower(CLIENT_AS_WINDOW(data->client));
20         actions_client_move(data, FALSE);
21     }
22
23     return FALSE;
24 }