diff options
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |