bar under tag fixed

This commit is contained in:
ed 2019-11-11 18:19:18 +01:00
parent 051ac8d21e
commit a0f30d08e2
1 changed files with 10 additions and 2 deletions

View File

@ -800,6 +800,7 @@ drawbar(Monitor *m)
int x, w, sw = 0;
int boxs = drw->fonts->h / 9;
int boxw = drw->fonts->h / 6 + 2;
int fonth = drw->fonts->h;
unsigned int i, occ = 0, urg = 0;
char *ts = stext;
char *tp = stext;
@ -835,8 +836,15 @@ drawbar(Monitor *m)
drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]);
drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i);
if (occ & 1 << i)
drw_rect(drw, x + 6, 18, 28 - 12, 2, 1,
urg & 1 << i);
// (drw, x, y, w, h, filled, invert
// drw_rect(Drw *drw, int x, int y, unsigned int w, unsigned int h, int filled, int invert)
//line below works when fontsize=12
//drw_rect(drw, x + 6, 18, 28 - 12, 2,
//
//line below works when fontsize=16
//drw_rect(drw, x + 8, 24, w - 16, 2,
drw_rect(drw, x + (w / 4), fonth - 1, w / 2, 2,
urg & 1 << i, urg & 1 << i);
x += w;
}
w = blw = TEXTW(m->ltsymbol);