From c90da6da781932c2d178bfb7e39ec1d5003543b7 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 12 Aug 2003 07:26:16 +0000 Subject: move the keyboard and mouse plugins into the kernel for mucho sexiness. make workspace changing a grabbed/interactive process like focus cycling is, with the popup and all. this is some hot shit. --- openbox/mouse.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 openbox/mouse.h (limited to 'openbox/mouse.h') diff --git a/openbox/mouse.h b/openbox/mouse.h new file mode 100644 index 00000000..a5e8f9a8 --- /dev/null +++ b/openbox/mouse.h @@ -0,0 +1,28 @@ +#ifndef ob__mouse_h +#define ob__mouse_h + +#include "action.h" +#include "frame.h" + +#include + +typedef enum { + MouseAction_Press, + MouseAction_Release, + MouseAction_Click, + MouseAction_DClick, + MouseAction_Motion, + NUM_MOUSEACTION +} ObMouseAction; + +void mouse_startup(); +void mouse_shutdown(); + +gboolean mouse_bind(char *buttonstr, char *contextstr, ObMouseAction mact, + ObAction *action); + +void mouse_event(struct _ObClient *client, ObFrameContext context, XEvent *e); + +void mouse_grab_for_client(struct _ObClient *client, gboolean grab); + +#endif -- cgit v1.2.3