From b75ef3588c759502851e9b71cab3b48d14fdefaa Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Sat, 11 Jul 2020 19:45:23 +0200 Subject: [PATCH] cleaned up bugfix --- dwm.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dwm.c b/dwm.c index e948e9c..bed64da 100644 --- a/dwm.c +++ b/dwm.c @@ -1642,7 +1642,10 @@ setup(void) /* init bars */ updatebars(); updatestatus(); - updatebarpos(selmon); + Monitor *m; + for (m = mons; m; m = m->next) { + updatebarpos(m); + } /* supporting window for NetWMCheck */ wmcheckwin = XCreateSimpleWindow(dpy, root, 0, 0, 1, 1, 0, 0, 0); XChangeProperty(dpy, wmcheckwin, netatom[NetWMCheck], XA_WINDOW, 32, @@ -1664,10 +1667,6 @@ setup(void) XSelectInput(dpy, root, wa.event_mask); grabkeys(); focus(NULL); - Monitor *m; - for (m = mons; m; m = m->next) { - updatebarpos(m); - } }