From 76379da87f4d0e32881de63348990d4cfc185fe8 Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Sun, 9 Jan 2022 20:49:53 -0500 Subject: Applied statusallmons patch https://dwm.suckless.org/patches/statusallmons/ --- dwm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dwm.c b/dwm.c index ad226ce..a9a2ee1 100644 --- a/dwm.c +++ b/dwm.c @@ -946,7 +946,7 @@ drawbar(Monitor *m) return; /* draw status first so it can be overdrawn by tags later */ - if (m == selmon) { /* status is only drawn on selected monitor */ + if (m == selmon || 1) { /* status is only drawn on selected monitor */ char *text, *s, ch; x = 0; for (text = s = stext; *s; s++) { @@ -2324,6 +2324,7 @@ updatesizehints(Client *c) void updatestatus(void) { + Monitor *m; if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext))) { strcpy(stext, "dwm-"VERSION); statusw = TEXTW(stext, statusfontindex) - lrpad + 2; @@ -2343,7 +2344,8 @@ updatestatus(void) statusw += TEXTW(text, statusfontindex) - lrpad + 2; } - drawbar(selmon); + for(m=mons; m; m = m->next) + drawbar(selmon); } void -- cgit v1.2.3