diff options
author | Joe <bousset.rudy@gmail.com> | 2022-08-12 16:45:23 +0200 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2022-08-12 16:45:23 +0200 |
commit | 31dd138a44aec32fdfdb44bf8794ac9f52404b36 (patch) | |
tree | 6042799774ab26058d4eb090e963d51d53e66028 /applied/dwm-statusallmons-6.2.diff | |
parent | rice (diff) | |
download | dwm-31dd138a44aec32fdfdb44bf8794ac9f52404b36.tar.gz dwm-31dd138a44aec32fdfdb44bf8794ac9f52404b36.tar.bz2 dwm-31dd138a44aec32fdfdb44bf8794ac9f52404b36.tar.xz dwm-31dd138a44aec32fdfdb44bf8794ac9f52404b36.tar.zst dwm-31dd138a44aec32fdfdb44bf8794ac9f52404b36.zip |
ricing
Diffstat (limited to 'applied/dwm-statusallmons-6.2.diff')
-rw-r--r-- | applied/dwm-statusallmons-6.2.diff | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/applied/dwm-statusallmons-6.2.diff b/applied/dwm-statusallmons-6.2.diff new file mode 100644 index 0000000..9d9633d --- /dev/null +++ b/applied/dwm-statusallmons-6.2.diff @@ -0,0 +1,25 @@ +diff -up a/dwm.c b/dwm.c +--- a/dwm.c 2020-07-09 16:49:10.023585649 +0200 ++++ b/dwm.c 2020-07-09 16:49:43.497542191 +0200 +@@ -702,7 +702,7 @@ drawbar(Monitor *m) + Client *c; + + /* 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]); + sw = TEXTW(stext) - lrpad + 2; /* 2px right padding */ + drw_text(drw, m->ww - sw, 0, sw, bh, 0, stext, 0); +@@ -1987,9 +1987,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 |