From b9938cb25f0daedb23f92408e2afb7a7968b663b Mon Sep 17 00:00:00 2001 From: speedie Date: Thu, 15 Jun 2023 23:28:39 +0200 Subject: [PATCH] No need to call setup() multiple times --- dwm.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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