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/xutil.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/x11/xutil.h (limited to 'src/x11/xutil.h') diff --git a/src/x11/xutil.h b/src/x11/xutil.h new file mode 100644 index 0000000..2e044e3 --- /dev/null +++ b/src/x11/xutil.h @@ -0,0 +1,21 @@ + +#pragma once + +#include "../core/types.h" + +void checkotherwm(void); + +Atom getatomprop(Client *c, Atom prop); +int getrootptr(int *x, int *y); +long getstate(Window w); +int gettextprop(Window w, Atom atom, char *text, unsigned int size); + +int sendevent(Window w, Atom proto, int m, long d0, long d1, long d2, long d3, + long d4); + +void setfocus(Client *c); +void updatenumlockmask(void); + +int xerror(Display *dpy, XErrorEvent *ee); +int xerrordummy(Display *dpy, XErrorEvent *ee); +int xerrorstart(Display *dpy, XErrorEvent *ee); -- cgit v1.2.3