summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorDouglas Rumbaugh <doug@douglasrumbaugh.com>2022-01-09 20:49:53 -0500
committerDouglas Rumbaugh <doug@douglasrumbaugh.com>2022-01-09 20:49:53 -0500
commit76379da87f4d0e32881de63348990d4cfc185fe8 (patch)
tree7aa86729a2c2df821d1334277f5250c1c13ee567 /dwm.c
parentd47ffe3b54571599a34e813e045332f60fb2e1ab (diff)
downloaddwm-76379da87f4d0e32881de63348990d4cfc185fe8.tar.gz
Applied statusallmons patch
https://dwm.suckless.org/patches/statusallmons/
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c6
1 files 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