commit b288019527388528b53878d1021889f86e15439e
parent f6c8dca4a11ba37f8766c6be7f04f44594623dc8
Author: Jan Christoph Ebersbach <jceb@e-jc.de>
Date: Sun, 9 Feb 2014 20:11:24 +0100
update statusallmons patch
Diffstat:
2 files changed, 46 insertions(+), 1 deletion(-)
diff --git a/dwm.suckless.org/patches/dwm-6.1-statusallmons.diff b/dwm.suckless.org/patches/dwm-6.1-statusallmons.diff
@@ -0,0 +1,44 @@
+URL: http://dwm.suckless.org/patches/statusallmons
+This patch draws and updates the statusbar on all monitors.
+
+Index: dwm/dwm.c
+===================================================================
+--- dwm/dwm.c.orig 2014-02-09 15:24:22.768117261 +0100
++++ dwm/dwm.c 2014-02-09 15:24:22.764117260 +0100
+@@ -715,17 +715,13 @@
+ drw_text(drw, x, 0, w, bh, m->ltsymbol, 0);
+ x += w;
+ xx = x;
+- if(m == selmon) { /* status is only drawn on selected monitor */
+- w = TEXTW(stext);
+- x = m->ww - w;
+- if(x < xx) {
+- x = xx;
+- w = m->ww - xx;
+- }
+- drw_text(drw, x, 0, w, bh, stext, 0);
++ w = TEXTW(stext);
++ x = m->ww - w;
++ if(x < xx) {
++ x = xx;
++ w = m->ww - xx;
+ }
+- else
+- x = m->ww;
++ drw_text(drw, x, 0, w, bh, stext, 0);
+ if((w = x - xx) > bh) {
+ x = xx;
+ if(m->sel) {
+@@ -1923,9 +1919,11 @@
+
+ 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
diff --git a/dwm.suckless.org/patches/statusallmons.md b/dwm.suckless.org/patches/statusallmons.md
@@ -8,8 +8,9 @@ This patch draws and updates the statusbar on all monitors.
Download
--------
Patches against different versions of dwm are available at
-[dwm-clean-patches](https://bitbucket.org/jceb81/dwm-clean-patches/src).
+[dwm-clean-patches](https://github.com/jceb/dwm-clean-patches).
+ * [dwm-6.1-statusallmons.diff](dwm-6.1-statusallmons.diff) (1026b) (20140209)
* [dwm-10e232f9ace7-statusallmons.diff](dwm-10e232f9ace7-statusallmons.diff) (982b) (20120406)
* [dwm-6.0-statusallmons.diff](dwm-6.0-statusallmons.diff) (982b) (20120406)
* [dwm-5.8.2-statusallmons.diff](dwm-5.8.2-statusallmons.diff) (4.0K) (20110318)