1 #include "openbox/action.h"
2 #include "openbox/action_list_run.h"
3 #include "openbox/client_set.h"
4 #include "openbox/stacking.h"
5 #include "openbox/window.h"
6 #include "openbox/dock.h"
8 static gboolean raise_func(const ObClientSet *set,
9 const ObActionListRun *data, gpointer options);
10 static gboolean lower_func(const ObClientSet *set,
11 const ObActionListRun *data, gpointer options);
13 void action_dock_startup(void)
15 action_register("RaiseDock", OB_ACTION_DEFAULT_FILTER_EMPTY,
16 NULL, NULL, raise_func);
17 action_register("LowerDock", OB_ACTION_DEFAULT_FILTER_EMPTY,
18 NULL, NULL, lower_func);
21 /* Always return FALSE because its not interactive */
22 static gboolean raise_func(const ObClientSet *set,
23 const ObActionListRun *data, gpointer options)
25 action_client_move(data, TRUE);
27 action_client_move(data, FALSE);
32 /* Always return FALSE because its not interactive */
33 static gboolean lower_func(const ObClientSet *set,
34 const ObActionListRun *data, gpointer options)
36 action_client_move(data, TRUE);
38 action_client_move(data, FALSE);