sites

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

commit c0608a0043f7ce363c177bda1e8ea8da22ced4e7
parent 5f4d015825d29e11b21568a501be0a291f4079fb
Author: Pascal Wittmann <mail@pascal-wittmann.de>
Date:   Fri, 18 Mar 2011 09:59:59 +0100

added patch statusallmons (draw/update statusbar on all monitors)
Diffstat:
Adwm.suckless.org/patches/dwm-5.8.2-statusallmons.diff | 39+++++++++++++++++++++++++++++++++++++++
Adwm.suckless.org/patches/statusallmons.md | 14++++++++++++++
2 files changed, 53 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/dwm-5.8.2-statusallmons.diff b/dwm.suckless.org/patches/dwm-5.8.2-statusallmons.diff @@ -0,0 +1,39 @@ +--- ../dwm-5.8.2/dwm.c 2011-03-18 09:51:10.000000000 +0100 ++++ ./dwm.c 2011-03-18 09:52:15.000000000 +0100 +@@ -700,17 +700,13 @@ drawbar(Monitor *m) { + 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) { +@@ -1917,9 +1913,11 @@ updatetitle(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 diff --git a/dwm.suckless.org/patches/statusallmons.md b/dwm.suckless.org/patches/statusallmons.md @@ -0,0 +1,14 @@ +STATUSBAR ON ALL MONITORS +========================= + +Description +----------- +This patch draws and updates the statusbar on all monitors. + +Download +-------- +* [dwm-5.8.2-statusallmons.diff](dwm-5.8.2-statusallmons.diff) (4.0K) (20110318) + +Author +------ +* Pascal Wittmann - <mail at pascal-wittmann dot de>