if windows on screen are going to be moved, then do the ReplayPointer before that...
[mikachu/openbox.git] / openbox / actions / move.c
1 #include "openbox/actions.h"
2 #include "openbox/prop.h"
3 #include "openbox/moveresize.h"
4
5 static gboolean run_func(ObActionsData *data, gpointer options);
6
7 void action_move_startup(void)
8 {
9     actions_register("Move",
10                      NULL, NULL,
11                      run_func,
12                      NULL, NULL);
13 }
14
15 /* Always return FALSE because its not interactive */
16 static gboolean run_func(ObActionsData *data, gpointer options)
17 {
18     if (data->client) {
19         guint32 corner;
20
21         corner = data->button != 0 ?
22             prop_atoms.net_wm_moveresize_move :
23             prop_atoms.net_wm_moveresize_move_keyboard;
24
25         moveresize_start(data->client, data->x, data->y, data->button, corner);
26     }
27
28     return FALSE;
29 }