diff options
| author | Douglas Rumbaugh <doug@douglasrumbaugh.com> | 2022-01-09 20:49:53 -0500 |
|---|---|---|
| committer | Douglas Rumbaugh <doug@douglasrumbaugh.com> | 2022-01-09 20:49:53 -0500 |
| commit | 76379da87f4d0e32881de63348990d4cfc185fe8 (patch) | |
| tree | 7aa86729a2c2df821d1334277f5250c1c13ee567 | |
| parent | d47ffe3b54571599a34e813e045332f60fb2e1ab (diff) | |
| download | dwm-76379da87f4d0e32881de63348990d4cfc185fe8.tar.gz | |
Applied statusallmons patch
https://dwm.suckless.org/patches/statusallmons/
| -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 |