diff options
author | Romain Gonçalves <commit@rgoncalves.se> | 2021-11-21 16:28:54 +0100 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2025-02-28 13:18:48 +0100 |
commit | a7be906e89b19b8a16426e8dbf3e3fea57859518 (patch) | |
tree | 55366f5f1761e964183296adb4ee4f6424a4cfde /dwm.c | |
parent | 05cd1ae54eb6070b3b7cb4921a1c48ff1ad2080d (diff) | |
download | dwm-a7be906e89b19b8a16426e8dbf3e3fea57859518.tar.gz |
patches: Apply statusbar on all monitors
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -708,7 +708,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); @@ -2012,9 +2012,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 |