]> icculus.org git repositories - dana/openbox.git/blob - openbox/mouse.h
set the client decorations to match the frame's so that there is not thot to be chang...
[dana/openbox.git] / openbox / mouse.h
1 #ifndef ob__mouse_h
2 #define ob__mouse_h
3
4 #include "action.h"
5 #include "frame.h"
6
7 #include <X11/Xlib.h>
8
9 typedef enum {
10     OB_MOUSE_ACTION_PRESS,
11     OB_MOUSE_ACTION_RELEASE,
12     OB_MOUSE_ACTION_CLICK,
13     OB_MOUSE_ACTION_DOUBLE_CLICK,
14     OB_MOUSE_ACTION_MOTION,
15     OB_MOUSE_NUM_ACTIONS
16 } ObMouseAction;
17
18 void mouse_startup();
19 void mouse_shutdown();
20
21 gboolean mouse_bind(char *buttonstr, char *contextstr, ObMouseAction mact,
22                     ObAction *action);
23
24 void mouse_event(struct _ObClient *client, ObFrameContext context, XEvent *e);
25
26 void mouse_grab_for_client(struct _ObClient *client, gboolean grab);
27
28 #endif