aboutsummaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorRomain Gonçalves <commit@rgoncalves.se>2021-11-21 16:28:54 +0100
committerRomain Gonçalves <commit@rgoncalves.se>2021-11-21 16:28:54 +0100
commit45763f59c894bc49c4b5e41a5406f2605cce2e8a (patch)
tree3022761a2a64340b604c1204601e253d4995adca /dwm.c
parent1e3f7a1bac8f1a9f8b87e88509344db73b326975 (diff)
downloaddwm-45763f59c894bc49c4b5e41a5406f2605cce2e8a.tar.gz
patches: Apply statusbar on all monitors
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 a4ef3ad..c589809 100644
--- a/dwm.c
+++ b/dwm.c
@@ -704,7 +704,7 @@ 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 */
+ if (m == selmon || 1) { /* status is only drawn on selected monitor */
drw_setscheme(drw, scheme[SchemeNorm]);
tw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
drw_text(drw, m->ww - tw, 0, tw, bh, 0, stext, 0);
@@ -1998,9 +1998,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
remember that computers suck.