From d39a42ca0cd11ab0534d22e2025812ab749db553 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Thu, 8 Apr 2021 18:03:23 -0400 Subject: [PATCH] [dwm] Make blanktags patch more consistent with the one on suckless.org --- suckless/dwm/README.md | 2 +- suckless/dwm/dwm.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/suckless/dwm/README.md b/suckless/dwm/README.md index ed9573a..24f725c 100644 --- a/suckless/dwm/README.md +++ b/suckless/dwm/README.md @@ -7,7 +7,7 @@ swallow combo -blank tags (my own edit) +blanktags alpha ## Installation diff --git a/suckless/dwm/dwm.c b/suckless/dwm/dwm.c index 4dc9c5f..759ec8a 100644 --- a/suckless/dwm/dwm.c +++ b/suckless/dwm/dwm.c @@ -510,7 +510,7 @@ buttonpress(XEvent *e) if (ev->window == selmon->barwin) { i = x = 0; do - x += (drw->fonts->h / 6 + 2)*4; + x += bh; while (ev->x >= x && ++i < LENGTH(tags)); if (i < LENGTH(tags)) { click = ClkTagBar; @@ -801,11 +801,11 @@ drawbar(Monitor *m) } x = 0; for (i = 0; i < LENGTH(tags); i++) { - w = boxw*4; + w = bh; drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeHigh]); - drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i); + drw_text(drw, x, 0, bh, bh, 0, "", urg & 1 << i); if (occ & 1 << i) - drw_rect(drw, x+boxw,boxw*1, w-boxw*2, w-boxw*2, + drw_rect(drw, x+boxw,boxw, w-boxw*2, w-boxw*2, m == selmon && selmon->sel && selmon->sel->tags & 1 << i, urg & 1 << i); x += w;