commit 4f3ac36037facc94e14f88417775a0b4de2f2790
parent 6dc3312ed0b0e5fe7d08c0f03e61cc35f47192df
Author: hhvn <hayden@haydenvh.com>
Date: Sun, 22 Nov 2020 17:21:07 +0000
dwm.c: draw status on all monitors
Diffstat:
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/dwm.c b/dwm.c
@@ -795,10 +795,8 @@ drawbar(Monitor *m)
Client *c;
/* draw status first so it can be overdrawn by tags later */
- if (m == selmon) { /* status is only drawn on selected monitor */
- drw_setscheme(drw, scheme[SchemeSel]);
- sw = m->ww - drawstatusbar(m, bh, stext);
- }
+ drw_setscheme(drw, scheme[SchemeSel]);
+ sw = m->ww - drawstatusbar(m, bh, stext);
for (c = m->clients; c; c = c->next) {
if (ISVISIBLE(c))
@@ -1983,7 +1981,7 @@ updatestatus(void)
{
if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext)))
strcpy(stext, "dwm-"VERSION);
- drawbar(selmon);
+ drawbars();
}
void