[wiki] [sites] [dwm][fancybar] Update for current master || Jochen Sprickerhof

From: <git_AT_suckless.org>
Date: Fri, 27 May 2022 11:38:11 +0200

commit 46a29875a65a944587c0f0708f6a54de2db835e4
Author: Jochen Sprickerhof <git_AT_jochen.sprickerhof.de>
Date: Fri May 27 11:36:37 2022 +0200

    [dwm][fancybar] Update for current master

diff --git a/dwm.suckless.org/patches/fancybar/dwm-fancybar-20200423-ed3ab6b.diff b/dwm.suckless.org/patches/fancybar/dwm-fancybar-20220527-d3f93c7.diff
similarity index 83%
rename from dwm.suckless.org/patches/fancybar/dwm-fancybar-20200423-ed3ab6b.diff
rename to dwm.suckless.org/patches/fancybar/dwm-fancybar-20220527-d3f93c7.diff
index a8aa2a03..d8e14129 100644
--- a/dwm.suckless.org/patches/fancybar/dwm-fancybar-20200423-ed3ab6b.diff
+++ b/dwm.suckless.org/patches/fancybar/dwm-fancybar-20220527-d3f93c7.diff
_AT_@ -1,8 +1,7 @@
 diff --git a/dwm.c b/dwm.c
-index fb1e326..941293e 100644
 --- a/dwm.c
 +++ b/dwm.c
-_AT_@ -696,10 +696,10 @@ dirtomon(int dir)
+_AT_@ -699,10 +699,10 @@ dirtomon(int dir)
  void
  drawbar(Monitor *m)
  {
_AT_@ -14,8 +13,8 @@ index fb1e326..941293e 100644
 + unsigned int i, occ = 0, urg = 0, n = 0;
          Client *c;
  
- /* draw status first so it can be overdrawn by tags later */
-_AT_@ -710,6 +710,8 @@ drawbar(Monitor *m)
+ if (!m->showbar)
+_AT_@ -716,6 +716,8 @@ drawbar(Monitor *m)
          }
  
          for (c = m->clients; c; c = c->next) {
_AT_@ -24,7 +23,7 @@ index fb1e326..941293e 100644
                  occ |= c->tags;
                  if (c->isurgent)
                          urg |= c->tags;
-_AT_@ -730,15 +732,39 @@ drawbar(Monitor *m)
+_AT_@ -736,15 +738,39 @@ drawbar(Monitor *m)
          x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0);
  
          if ((w = m->ww - tw - x) > bh) {
_AT_@ -58,8 +57,8 @@ index fb1e326..941293e 100644
 + continue;
 + tw = MIN(m->sel == c ? w : mw, TEXTW(c->name));
 +
-+ drw_setscheme(drw, scheme[m->sel == c ? SchemeSel : SchemeNorm]);
-+ if (tw > 0) /* trap special handling of 0 in drw_text */
++ drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]);
++ if (tw > lrpad / 2)
 + drw_text(drw, x, 0, tw, bh, lrpad / 2, c->name, 0);
 + if (c->isfloating)
 + drw_rect(drw, x + boxs, boxs, boxw, boxw, c->isfixed, 0);
diff --git a/dwm.suckless.org/patches/fancybar/index.md b/dwm.suckless.org/patches/fancybar/index.md
index 862476cf..053ccc93 100644
--- a/dwm.suckless.org/patches/fancybar/index.md
+++ b/dwm.suckless.org/patches/fancybar/index.md
_AT_@ -12,7 +12,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-6.2.diff](dwm-fancybar-6.2.diff)
-* [dwm-fancybar-20200423-ed3ab6b.diff](dwm-fancybar-20200423-ed3ab6b.diff)
+* [dwm-fancybar-20220527-d3f93c7.diff](dwm-fancybar-20220527-d3f93c7.diff)
 
 Author
 ------
Received on Fri May 27 2022 - 11:38:11 CEST

This archive was generated by hypermail 2.3.0 : Fri May 27 2022 - 11:48:37 CEST