From 25eb18b29a1ff7f48d19e081222ab4f2ffff0ae4 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Mon, 22 Jun 2020 01:22:28 -0400 Subject: patch: statusallmons This patch draws and updates the statusbar on all monitors. --- dwm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dwm.c b/dwm.c index 039f8f6..5d4342a 100644 --- a/dwm.c +++ b/dwm.c @@ -780,7 +780,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 */ tw = TEXTW(stext) - lrpad + w; /* right padding for the tiling symbol */ drw_text(drw, m->ww - tw, 0, tw, bh, 0, stext, 0); drw_text(drw, m->ww - w, 0, w, bh, lrpad / 2, m->ltsymbol, 0); @@ -2205,9 +2205,11 @@ updatesizehints(Client *c) void updatestatus(void) { + Monitor* m; if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext))) strcpy(stext, "dwm-"VERSION); - drawbar(selmon); + for(m = mons; m; m = m->next) + drawbar(m); } void -- cgit v1.2.3