From 4642216f70dd98134a79f9299b7ca4bc876649c7 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 28 Aug 2016 00:36:53 -0700 Subject: *: 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. --- src/xevent.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/xevent.h (limited to 'src/xevent.h') 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); -- cgit v1.2.3