summaryrefslogtreecommitdiff
path: root/src/xevent.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2016-08-28 00:36:53 -0700
committerVito Caputo <vcaputo@gnugeneration.com>2016-09-09 14:14:31 -0700
commit4642216f70dd98134a79f9299b7ca4bc876649c7 (patch)
treebdf9fd892bc54a2f2a678a9828c6af9d9fc8bed2 /src/xevent.h
parente99f5ac1293a0ae1f498bc4c73c4c04e4edb8665 (diff)
*: refactor all the things
Long overdue house cleaning. The addition of compositing/monitoring overlays in vwm3 pushed vwm well past what is a reasonable size for a simple thousand line file. This is a first step towards restoring sanity in the code, but no behavioral differences are intended, this is mostly just shuffling around and organizing code. I expect some performance regressions initially, follow-on commits will make more improvements to that end as the dust settles.
Diffstat (limited to 'src/xevent.h')
-rw-r--r--src/xevent.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/xevent.h b/src/xevent.h
new file mode 100644
index 0000000..dc710fd
--- /dev/null
+++ b/src/xevent.h
@@ -0,0 +1,18 @@
+#include "X11/Xlib.h"
+
+typedef struct _vwm_t vwm_t;
+
+void vwm_xevent_handle_key_press(vwm_t *vwm, XKeyPressedEvent *ev);
+void vwm_xevent_handle_key_release(vwm_t *vwm, XKeyReleasedEvent *ev);
+void vwm_xevent_handle_button_press(vwm_t *vwm, XButtonPressedEvent *ev);
+void vwm_xevent_handle_motion_notify(vwm_t *vwm, XMotionEvent *ev);
+void vwm_xevent_handle_button_release(vwm_t *vwm, XButtonReleasedEvent *ev);
+void vwm_xevent_handle_create_notify(vwm_t *vwm, XCreateWindowEvent *ev);
+void vwm_xevent_handle_destroy_notify(vwm_t *vwm, XDestroyWindowEvent *ev);
+void vwm_xevent_handle_configure_request(vwm_t *vwm, XConfigureRequestEvent *ev);
+void vwm_xevent_handle_configure_notify(vwm_t *vwm, XConfigureEvent *ev);
+void vwm_xevent_handle_unmap_notify(vwm_t *vwm, XUnmapEvent *ev);
+void vwm_xevent_handle_map_notify(vwm_t *vwm, XMapEvent *ev);
+void vwm_xevent_handle_map_request(vwm_t *vwm, XMapRequestEvent *ev);
+void vwm_xevent_handle_property_notify(vwm_t *vwm, XPropertyEvent *ev);
+void vwm_xevent_handle_mapping_notify(vwm_t *vwm, XMappingEvent *ev);
© All Rights Reserved