summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2020-06-22 01:22:28 -0400
committerMalfurious <m@lfurio.us>2023-06-03 22:22:39 -0400
commit25eb18b29a1ff7f48d19e081222ab4f2ffff0ae4 (patch)
treedffb0c4d397ecbe730f8bf77ec526fb733055be4
parenta93b7c30dd3f3a7b1c191b918ea4eb5002400506 (diff)
downloaddwm-25eb18b29a1ff7f48d19e081222ab4f2ffff0ae4.tar.gz
dwm-25eb18b29a1ff7f48d19e081222ab4f2ffff0ae4.zip
patch: statusallmons
This patch draws and updates the statusbar on all monitors.
-rw-r--r--dwm.c6
1 files 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