sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 39e855f7f95bb116b6ac24ba9cbb8d536f921e90
parent d023aba82b50df43a400daa1ec564827eebf1b16
Author: Eric Pruitt <eric.pruitt@gmail.com>
Date:   Sat, 21 Feb 2015 11:53:03 -0800

Fixed broken width adjustment in 6.1 systray patch

Diffstat:
Mdwm.suckless.org/patches/dwm-6.1-systray.diff | 20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/dwm.suckless.org/patches/dwm-6.1-systray.diff b/dwm.suckless.org/patches/dwm-6.1-systray.diff @@ -237,16 +237,16 @@ Index: dwm/dwm.c for(c = m->clients; c; c = c->next) { occ |= c->tags; if(c->isurgent) -@@ -726,6 +814,9 @@ drawbar(Monitor *m) { - } - else - x = m->ww; -+ if(showsystray && m == systraytomon(m)) { -+ x -= getsystraywidth(); -+ } - if((w = x - xx) > bh) { - x = xx; - if(m->sel) { +@@ -718,6 +806,9 @@ drawbar(Monitor *m) { + if(m == selmon) { /* status is only drawn on selected monitor */ + w = TEXTW(stext); + x = m->ww - w; ++ if(showsystray && m == systraytomon(m)) { ++ x -= getsystraywidth(); ++ } + if(x < xx) { + x = xx; + w = m->ww - xx; @@ -747,6 +838,7 @@ drawbars(void) { for(m = mons; m; m = m->next)