diff options
| author | Filip Wandzio <contact@philw.dev> | 2025-12-30 02:45:11 +0100 |
|---|---|---|
| committer | Filip Wandzio <contact@philw.dev> | 2025-12-30 02:45:11 +0100 |
| commit | 4c90d1d9e4092f9ee0106d316829144653a276ea (patch) | |
| tree | cba5e7697a1334da068c5fa5e5951e00696fb903 /src/core/globals.h | |
| parent | 11b1ff4691ff3e0f8346e7431fa3f90cc846fc5d (diff) | |
| download | dwm-4c90d1d9e4092f9ee0106d316829144653a276ea.tar.gz dwm-4c90d1d9e4092f9ee0106d316829144653a276ea.zip | |
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 <contact@philw.dev>
Diffstat (limited to '')
| -rw-r--r-- | src/core/globals.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/core/globals.h b/src/core/globals.h new file mode 100644 index 0000000..4b800fe --- /dev/null +++ b/src/core/globals.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | |||
| 2 | #pragma once | ||
| 3 | |||
| 4 | #include "types.h" | ||
| 5 | |||
| 6 | extern Display *dpy; | ||
| 7 | extern Window root, wmcheckwin; | ||
| 8 | |||
| 9 | extern Monitor *mons, *selmon; | ||
| 10 | |||
| 11 | extern int screen; | ||
| 12 | extern int sw, sh; | ||
| 13 | extern int bh; | ||
| 14 | extern int running; | ||
| 15 | extern unsigned int numlockmask; | ||
| 16 | |||
| 17 | extern Atom wmatom[WMLast]; | ||
| 18 | extern Atom netatom[NetLast]; | ||
| 19 | extern Atom xatom[XLast]; | ||
| 20 | |||
| 21 | extern Systray *systray; | ||
