]> icculus.org git repositories - mikachu/openbox.git/blob - openbox/actions/raisetemp.c
Detect input shapes
[mikachu/openbox.git] / openbox / actions / raisetemp.c
1 #include "openbox/actions.h"
2 #include "openbox/stacking.h"
3 #include "openbox/window.h"
4 #include "openbox/focus_cycle.h"
5
6 static gboolean run_func(ObActionsData *data, gpointer options);
7
8 void action_raisetemp_startup(void)
9 {
10     actions_register("RaiseTemp",
11                      NULL, NULL,
12                      run_func);
13 }
14
15 /* Always return FALSE because its not interactive */
16 static gboolean run_func(ObActionsData *data, gpointer options)
17 {
18     if (focus_cycle_target) {
19         actions_client_move(data, TRUE);
20         stacking_temp_raise(CLIENT_AS_WINDOW(data->client));
21         actions_client_move(data, FALSE);
22     }
23
24     return FALSE;
25 }