aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorFilip Wandzio <contact@philw.dev>2025-12-30 02:45:11 +0100
committerFilip Wandzio <contact@philw.dev>2025-12-30 02:45:11 +0100
commit4c90d1d9e4092f9ee0106d316829144653a276ea (patch)
treecba5e7697a1334da068c5fa5e5951e00696fb903 /src/ui
parent11b1ff4691ff3e0f8346e7431fa3f90cc846fc5d (diff)
downloaddwm-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.h13
-rw-r--r--src/ui/input.h13
-rw-r--r--src/ui/systray.h12
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
6void drawbar(Monitor *m);
7void drawbars(void);
8void updatebars(void);
9void updatestatus(void);
10unsigned int getsystraywidth(void);
11
12extern char stext[256];
13extern 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
6void grabkeys(void);
7void grabbuttons(Client *c, int focused);
8
9void keypress(XEvent *e);
10void buttonpress(XEvent *e);
11
12void movemouse(const Arg *arg);
13void 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
6void updatesystray(void);
7void removesystrayicon(Client *i);
8void updatesystrayicongeom(Client *i, int w, int h);
9void updatesystrayiconstate(Client *i, XPropertyEvent *ev);
10
11Client *wintosystrayicon(Window w);
12Monitor *systraytomon(Monitor *m);