[wiki] [sites] Fixed broken width adjustment in 6.1 systray patch || Eric Pruitt

From: <git_AT_suckless.org>
Date: Sat, 21 Feb 2015 20:55:40 +0100

commit 39e855f7f95bb116b6ac24ba9cbb8d536f921e90
Author: Eric Pruitt <eric.pruitt_AT_gmail.com>
Date: Sat Feb 21 11:53:03 2015 -0800

    Fixed broken width adjustment in 6.1 systray patch

diff --git a/dwm.suckless.org/patches/dwm-6.1-systray.diff b/dwm.suckless.org/patches/dwm-6.1-systray.diff
index 650d25d..274496f 100644
--- a/dwm.suckless.org/patches/dwm-6.1-systray.diff
+++ b/dwm.suckless.org/patches/dwm-6.1-systray.diff
_AT_@ -237,16 +237,16 @@ Index: dwm/dwm.c
          for(c = m->clients; c; c = c->next) {
                  occ |= c->tags;
                  if(c->isurgent)
-_AT_@ -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) {
+_AT_@ -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;
 _AT_@ -747,6 +838,7 @@ drawbars(void) {
  
          for(m = mons; m; m = m->next)
Received on Sat Feb 21 2015 - 20:55:40 CET

This archive was generated by hypermail 2.3.0 : Thu Jun 18 2015 - 17:40:09 CEST