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/wm/monitor.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/wm/monitor.h (limited to 'src/wm/monitor.h') diff --git a/src/wm/monitor.h b/src/wm/monitor.h new file mode 100644 index 0000000..e09935e --- /dev/null +++ b/src/wm/monitor.h @@ -0,0 +1,15 @@ + +#pragma once + +#include "../core/types.h" + +Monitor *createmon(void); +void cleanupmon(Monitor *mon); + +Monitor *recttomon(int x, int y, int w, int h); +Monitor *wintomon(Window w); +void sendmon(Client *c, Monitor *m); + +int updategeom(void); +void updatebarpos(Monitor *m); +void resizebarwin(Monitor *m); -- cgit v1.2.3