summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorspeedie <speedie@duck.com>2023-06-15 23:28:39 +0200
committerspeedie <speedie@duck.com>2023-06-15 23:28:39 +0200
commitb9938cb25f0daedb23f92408e2afb7a7968b663b (patch)
tree961a38edd34234b47db3c99b5b9d08f4b437952d /dwm.c
parent8bff8140e72c180c2655355e6161f2f4e6991b2d (diff)
No need to call setup() multiple times
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 9308af9..1ce854c 100644
--- a/dwm.c
+++ b/dwm.c
@@ -2592,7 +2592,12 @@ void
xrdb(const Arg *arg)
{
load_xresources();
- setup();
+
+ for (int i = 0; i < LENGTH(colors); i++)
+ scheme[i] = drw_scm_create(drw, colors[i], 3);
+
+ focus(NULL);
+ arrange(NULL);
}
void