summaryrefslogtreecommitdiff
path: root/openbox/mouse.h
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/mouse.h')
-rw-r--r--openbox/mouse.h28
1 files changed, 28 insertions, 0 deletions
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 <X11/Xlib.h>
+
+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