1 #include "openbox/action.h"
2 #include "openbox/action_list_run.h"
3 #include "openbox/stacking.h"
4 #include "openbox/window.h"
5 #include "openbox/dock.h"
7 static gboolean raise_func(const ObActionListRun *data, gpointer options);
8 static gboolean lower_func(const ObActionListRun *data, gpointer options);
10 void action_dock_startup(void)
12 action_register("RaiseDock", OB_ACTION_DEFAULT_FILTER_EMPTY,
13 NULL, NULL, raise_func);
14 action_register("LowerDock", OB_ACTION_DEFAULT_FILTER_EMPTY,
15 NULL, NULL, lower_func);
18 /* Always return FALSE because its not interactive */
19 static gboolean raise_func(const ObActionListRun *data, gpointer options)
21 action_client_move(data, TRUE);
23 action_client_move(data, FALSE);
28 /* Always return FALSE because its not interactive */
29 static gboolean lower_func(const ObActionListRun *data, gpointer options)
31 action_client_move(data, TRUE);
33 action_client_move(data, FALSE);