[wiki] [sites] update hide_vacant_tags for dwm 6.1 release || Matt Boswell

From: <git_AT_suckless.org>
Date: Fri, 22 Jan 2016 18:30:02 +0100

commit 33f13a913f98c9acb20e9001a6d56858757b69c3
Author: Matt Boswell <mordervomubel+gitlab_AT_lockmail.us>
Date: Fri Jan 22 12:29:03 2016 -0500

    update hide_vacant_tags for dwm 6.1 release
    
    previous patch was made against a commit between 6.0 and 6.1

diff --git a/dwm.suckless.org/patches/dwm-6.1-hide_vacant_tags.diff b/dwm.suckless.org/patches/dwm-6.1-hide_vacant_tags.diff
index 7f5fb3d..8cd52ba 100644
--- a/dwm.suckless.org/patches/dwm-6.1-hide_vacant_tags.diff
+++ b/dwm.suckless.org/patches/dwm-6.1-hide_vacant_tags.diff
_AT_@ -1,10 +1,10 @@
 diff --git a/dwm.c b/dwm.c
-index ffc8864..0e5d3f1 100644
+index 0362114..0da6e27 100644
 --- a/dwm.c
 +++ b/dwm.c
-_AT_@ -423,9 +423,15 @@ buttonpress(XEvent *e) {
+_AT_@ -430,9 +430,15 @@ buttonpress(XEvent *e)
          }
- if(ev->window == selmon->barwin) {
+ if (ev->window == selmon->barwin) {
                  i = x = 0;
 - do
 + unsigned int occ = 0;
_AT_@ -15,22 +15,22 @@ index ffc8864..0e5d3f1 100644
 + if(!(occ & 1 << i || m->tagset[m->seltags] & 1 << i))
 + continue;
                          x += TEXTW(tags[i]);
-- while(ev->x >= x && ++i < LENGTH(tags));
-+ } while(ev->x >= x && ++i < LENGTH(tags));
- if(i < LENGTH(tags)) {
+- while (ev->x >= x && ++i < LENGTH(tags));
++ } while (ev->x >= x && ++i < LENGTH(tags));
+ if (i < LENGTH(tags)) {
                          click = ClkTagBar;
                          arg.ui = 1 << i;
-_AT_@ -703,11 +709,14 @@ drawbar(Monitor *m) {
+_AT_@ -717,11 +723,14 @@ drawbar(Monitor *m)
          }
          x = 0;
- for(i = 0; i < LENGTH(tags); i++) {
+ for (i = 0; i < LENGTH(tags); i++) {
 + /* do not draw vacant tags */
 + if(!(occ & 1 << i || m->tagset[m->seltags] & 1 << i))
 + continue;
                  w = TEXTW(tags[i]);
                  drw_setscheme(drw, m->tagset[m->seltags] & 1 << i ? &scheme[SchemeSel] : &scheme[SchemeNorm]);
                  drw_text(drw, x, 0, w, bh, tags[i], urg & 1 << i);
- drw_rect(drw, x, 0, w, bh, m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
+ drw_rect(drw, x + 1, 1, dx, dx, m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
 - occ & 1 << i, urg & 1 << i);
 + 0, urg & 1 << i);
                  x += w;
diff --git a/dwm.suckless.org/patches/hide_vacant_tags.md b/dwm.suckless.org/patches/hide_vacant_tags.md
index 4642abe..d17a86e 100644
--- a/dwm.suckless.org/patches/hide_vacant_tags.md
+++ b/dwm.suckless.org/patches/hide_vacant_tags.md
_AT_@ -18,9 +18,10 @@ filled/empty rectangles.
 Download
 --------
 
-* [dwm-6.1-hide_vacant_tags.diff](dwm-6.1-hide_vacant_tags.diff) (1169b) (20140607)
+* [dwm-6.1-hide_vacant_tags.diff](dwm-6.1-hide_vacant_tags.diff) - 2016-01-22
 
 Author
 ------
 
 * [OndÅ™ej Grover](mailto:ondrej.grover_AT_gmail.com)
+* Matthew Boswell - mordervomubel+suckless at lockmail dot us (mechanical update for dwm 6.1 release)
Received on Fri Jan 22 2016 - 18:30:02 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 22 2016 - 18:36:16 CET