1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#include "openbox/actions.h"
#include "openbox/stacking.h"
#include "openbox/window.h"
#include "openbox/dock.h"
static gboolean raise_func(ObActionsData *data, gpointer options);
static gboolean lower_func(ObActionsData *data, gpointer options);
void action_dock_startup(void)
{
actions_register("RaiseDock",
NULL, NULL,
raise_func);
actions_register("LowerDock",
NULL, NULL,
lower_func);
}
/* Always return FALSE because its not interactive */
static gboolean raise_func(ObActionsData *data, gpointer options)
{
actions_client_move(data, TRUE);
dock_raise_dock();
actions_client_move(data, FALSE);
return FALSE;
}
/* Always return FALSE because its not interactive */
static gboolean lower_func(ObActionsData *data, gpointer options)
{
actions_client_move(data, TRUE);
dock_lower_dock();
actions_client_move(data, FALSE);
return FALSE;
}
|