[wiki] [sites] [dwm][fancybar] Don't overwrite status text || Jochen Sprickerhof

From: <git_AT_suckless.org>
Date: Tue, 08 Jan 2019 22:03:47 +0100

commit 6037646fb7547fb21eafc885e77cbeb79042489c
Author: Jochen Sprickerhof <git_AT_jochen.sprickerhof.de>
Date: Tue Jan 8 22:02:40 2019 +0100

    [dwm][fancybar] Don't overwrite status text

diff --git a/dwm.suckless.org/patches/fancybar/dwm-fancybar-git-20160725-7af4d43.diff b/dwm.suckless.org/patches/fancybar/dwm-fancybar-2019018-b69c870.diff
similarity index 90%
rename from dwm.suckless.org/patches/fancybar/dwm-fancybar-git-20160725-7af4d43.diff
rename to dwm.suckless.org/patches/fancybar/dwm-fancybar-2019018-b69c870.diff
index ee1a8e44..7d14e3ac 100644
--- a/dwm.suckless.org/patches/fancybar/dwm-fancybar-git-20160725-7af4d43.diff
+++ b/dwm.suckless.org/patches/fancybar/dwm-fancybar-2019018-b69c870.diff
_AT_@ -1,8 +1,8 @@
 diff --git a/dwm.c b/dwm.c
-index b2bc9bd..32e94a7 100644
+index 4465af1..eff2da6 100644
 --- a/dwm.c
 +++ b/dwm.c
-_AT_@ -708,10 +708,10 @@ dirtomon(int dir)
+_AT_@ -695,10 +695,10 @@ dirtomon(int dir)
  void
  drawbar(Monitor *m)
  {
_AT_@ -15,7 +15,7 @@ index b2bc9bd..32e94a7 100644
          Client *c;
  
          /* draw status first so it can be overdrawn by tags later */
-_AT_@ -722,6 +722,8 @@ drawbar(Monitor *m)
+_AT_@ -709,6 +709,8 @@ drawbar(Monitor *m)
          }
  
          for (c = m->clients; c; c = c->next) {
_AT_@ -24,7 +24,7 @@ index b2bc9bd..32e94a7 100644
                  occ |= c->tags;
                  if (c->isurgent)
                          urg |= c->tags;
-_AT_@ -742,15 +744,39 @@ drawbar(Monitor *m)
+_AT_@ -729,15 +731,39 @@ drawbar(Monitor *m)
          x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0);
  
          if ((w = m->ww - sw - x) > bh) {
_AT_@ -37,7 +37,7 @@ index b2bc9bd..32e94a7 100644
 - drw_setscheme(drw, scheme[SchemeNorm]);
 - drw_rect(drw, x, 0, w, bh, 1, 1);
 + if (n > 0) {
-+ tw = TEXTW(m->sel->name);
++ tw = TEXTW(m->sel->name) + lrpad;
 + mw = (tw >= w || n == 1) ? 0 : (w - tw) / (n - 1);
 +
 + i = 0;
diff --git a/dwm.suckless.org/patches/fancybar/index.md b/dwm.suckless.org/patches/fancybar/index.md
index 857bb062..e9cf23c9 100644
--- a/dwm.suckless.org/patches/fancybar/index.md
+++ b/dwm.suckless.org/patches/fancybar/index.md
_AT_@ -11,7 +11,7 @@ Download
 --------
 * [dwm-fancybar-5.6.1.diff](dwm-fancybar-5.6.1.diff)
 * [dwm-fancybar-6.1.diff](dwm-fancybar-6.1.diff)
-* [dwm-fancybar-git-20160725-7af4d43.diff](dwm-fancybar-git-20160725-7af4d43.diff)
+* [dwm-fancybar-2019018-b69c870.diff](dwm-fancybar-2019018-b69c870.diff)
 
 Author
 ------
Received on Tue Jan 08 2019 - 22:03:47 CET

This archive was generated by hypermail 2.3.0 : Tue Jan 08 2019 - 22:12:27 CET