summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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