sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit e50595275e95b29e46dc2e1ae465ec010a1fd49a
parent bea2a7c55a04e719807b89cf7983158855f34ccf
Author: Jan Christoph Ebersbach <jceb@e-jc.de>
Date:   Tue, 14 Feb 2012 21:23:50 +0100

update statusallmons patch to dwm 6.0
Diffstat:
Adwm.suckless.org/patches/dwm-6.0-statusallmons.diff | 43+++++++++++++++++++++++++++++++++++++++++++
Mdwm.suckless.org/patches/statusallmons.md | 1+
2 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/dwm-6.0-statusallmons.diff b/dwm.suckless.org/patches/dwm-6.0-statusallmons.diff @@ -0,0 +1,43 @@ +URL: http://dwm.suckless.org/patches/statusallmons +This patch draws and updates the statusbar on all monitors. + +diff -r 6f54bd1ef439 dwm.c +--- a/dwm.c Wed Jan 04 13:30:12 2012 +0100 ++++ b/dwm.c Sun Feb 12 09:32:49 2012 +0100 +@@ -740,17 +740,13 @@ + drawtext(m->ltsymbol, dc.norm, False); + dc.x += dc.w; + x = dc.x; +- if(m == selmon) { /* status is only drawn on selected monitor */ +- dc.w = TEXTW(stext); +- dc.x = m->ww - dc.w; +- if(dc.x < x) { +- dc.x = x; +- dc.w = m->ww - x; +- } +- drawtext(stext, dc.norm, False); ++ dc.w = TEXTW(stext); ++ dc.x = m->ww - dc.w; ++ if(dc.x < x) { ++ dc.x = x; ++ dc.w = m->ww - x; + } +- else +- dc.x = m->ww; ++ drawtext(stext, dc.norm, False); + if((dc.w = dc.x - x) > bh) { + dc.x = x; + if(m->sel) { +@@ -2005,9 +2001,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 @@ -7,6 +7,7 @@ This patch draws and updates the statusbar on all monitors. Download -------- +* [dwm-6.0-statusallmons.diff](dwm-6.0-statusallmons.diff) (1.0K) (20120214) * [dwm-5.8.2-statusallmons.diff](dwm-5.8.2-statusallmons.diff) (4.0K) (20110318) Author