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/ui | |
| 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/ui/bar.h | 13 | ||||
| -rw-r--r-- | src/ui/input.h | 13 | ||||
| -rw-r--r-- | src/ui/systray.h | 12 |
3 files changed, 38 insertions, 0 deletions
diff --git a/src/ui/bar.h b/src/ui/bar.h new file mode 100644 index 0000000..79e4912 --- /dev/null +++ b/src/ui/bar.h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | |||
| 2 | #pragma once | ||
| 3 | |||
| 4 | #include "../core/types.h" | ||
| 5 | |||
| 6 | void drawbar(Monitor *m); | ||
| 7 | void drawbars(void); | ||
| 8 | void updatebars(void); | ||
| 9 | void updatestatus(void); | ||
| 10 | unsigned int getsystraywidth(void); | ||
| 11 | |||
| 12 | extern char stext[256]; | ||
| 13 | extern int lrpad; | ||
diff --git a/src/ui/input.h b/src/ui/input.h new file mode 100644 index 0000000..54e3c58 --- /dev/null +++ b/src/ui/input.h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | |||
| 2 | #pragma once | ||
| 3 | |||
| 4 | #include "../core/types.h" | ||
| 5 | |||
| 6 | void grabkeys(void); | ||
| 7 | void grabbuttons(Client *c, int focused); | ||
| 8 | |||
| 9 | void keypress(XEvent *e); | ||
| 10 | void buttonpress(XEvent *e); | ||
| 11 | |||
| 12 | void movemouse(const Arg *arg); | ||
| 13 | void resizemouse(const Arg *arg); | ||
diff --git a/src/ui/systray.h b/src/ui/systray.h new file mode 100644 index 0000000..ad78f58 --- /dev/null +++ b/src/ui/systray.h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | |||
| 2 | #pragma once | ||
| 3 | |||
| 4 | #include "../core/types.h" | ||
| 5 | |||
| 6 | void updatesystray(void); | ||
| 7 | void removesystrayicon(Client *i); | ||
| 8 | void updatesystrayicongeom(Client *i, int w, int h); | ||
| 9 | void updatesystrayiconstate(Client *i, XPropertyEvent *ev); | ||
| 10 | |||
| 11 | Client *wintosystrayicon(Window w); | ||
| 12 | Monitor *systraytomon(Monitor *m); | ||
