From 4c90d1d9e4092f9ee0106d316829144653a276ea Mon Sep 17 00:00:00 2001 From: Filip Wandzio Date: Tue, 30 Dec 2025 02:45:11 +0100 Subject: Split monolithic dwm.h into modular headers and group them by it's functionalities The new plan of refactoring this project is to split entire monolithic codebase into separate, (kind of) independent modules. This will help with understanding the code by turning off modules and deciding which ones require some work. Signed-off-by: Filip Wandzio --- src/x11/xevents.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/x11/xevents.h (limited to 'src/x11/xevents.h') diff --git a/src/x11/xevents.h b/src/x11/xevents.h new file mode 100644 index 0000000..98129bb --- /dev/null +++ b/src/x11/xevents.h @@ -0,0 +1,25 @@ + +#pragma once + +#include + +void run(void); +void scan(void); + +void buttonpress(XEvent *e); +void keypress(XEvent *e); +void maprequest(XEvent *e); +void configurerequest(XEvent *e); +void configurenotify(XEvent *e); +void destroynotify(XEvent *e); +void unmapnotify(XEvent *e); +void clientmessage(XEvent *e); +void propertynotify(XEvent *e); +void resizerequest(XEvent *e); +void mappingnotify(XEvent *e); +void motionnotify(XEvent *e); +void enternotify(XEvent *e); +void focusin(XEvent *e); +void expose(XEvent *e); + +extern void (*handler[LASTEvent])(XEvent *); -- cgit v1.2.3