aboutsummaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-08-12 16:45:23 +0200
committerJoe <bousset.rudy@gmail.com>2022-08-12 16:45:23 +0200
commit31dd138a44aec32fdfdb44bf8794ac9f52404b36 (patch)
tree6042799774ab26058d4eb090e963d51d53e66028 /dwm.c
parentrice (diff)
downloaddwm-31dd138a44aec32fdfdb44bf8794ac9f52404b36.tar.gz
dwm-31dd138a44aec32fdfdb44bf8794ac9f52404b36.tar.bz2
dwm-31dd138a44aec32fdfdb44bf8794ac9f52404b36.tar.xz
dwm-31dd138a44aec32fdfdb44bf8794ac9f52404b36.tar.zst
dwm-31dd138a44aec32fdfdb44bf8794ac9f52404b36.zip
ricing
Diffstat (limited to '')
-rw-r--r--dwm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index e5068e6..fc1e2a8 100644
--- a/dwm.c
+++ b/dwm.c
@@ -879,7 +879,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 */
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);
@@ -2355,9 +2355,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