blob: ba8372a584bb0ad50e21ff35397b04385dfe06e3 (
plain)
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
|
#include "openbox/actions.h"
#include "openbox/moveresize.h"
#include "obt/prop.h"
static gboolean run_func(ObActionsData *data, gpointer options);
void action_move_startup(void)
{
actions_register("Move",
NULL, NULL,
run_func);
}
/* Always return FALSE because its not interactive */
static gboolean run_func(ObActionsData *data, gpointer options)
{
if (data->client) {
guint32 corner;
corner = data->button != 0 ?
OBT_PROP_ATOM(NET_WM_MOVERESIZE_MOVE) :
OBT_PROP_ATOM(NET_WM_MOVERESIZE_MOVE_KEYBOARD);
moveresize_start(data->client, data->x, data->y, data->button, corner);
}
return FALSE;
}
|