indicators: too wide (full) indicators when using awesombar and fancybar, ref. #69

This commit is contained in:
bakkeby 2020-11-05 13:47:13 +01:00
parent 251e3a23de
commit 8b43316e96
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ draw_awesomebar(Bar *bar, BarArg *a)
drw_setscheme(drw, scheme[scm]); drw_setscheme(drw, scheme[scm]);
drw_text(drw, x, a->y, tabw + (i < remainder ? 1 : 0), a->h, pad, c->name, 0, False); drw_text(drw, x, a->y, tabw + (i < remainder ? 1 : 0), a->h, pad, c->name, 0, False);
drawstateindicator(c->mon, c, 1, x, a->y, w, a->h, 0, 0, c->isfixed); drawstateindicator(c->mon, c, 1, x, a->y, tabw + (i < remainder ? 1 : 0), a->h, 0, 0, c->isfixed);
x += tabw + (i < remainder ? 1 : 0); x += tabw + (i < remainder ? 1 : 0);
} }
} }

View File

@ -53,7 +53,7 @@ draw_fancybar(Bar *bar, BarArg *a)
drw_setscheme(drw, scheme[m->sel == c ? SchemeTitleSel : SchemeTitleNorm]); drw_setscheme(drw, scheme[m->sel == c ? SchemeTitleSel : SchemeTitleNorm]);
if (ftw > 0) /* trap special handling of 0 in drw_text */ if (ftw > 0) /* trap special handling of 0 in drw_text */
drw_text(drw, x, a->y, ftw, a->h, lrpad / 2, c->name, 0, False); drw_text(drw, x, a->y, ftw, a->h, lrpad / 2, c->name, 0, False);
drawstateindicator(c->mon, c, 1, x, a->y, w, a->h, 0, 0, c->isfixed); drawstateindicator(c->mon, c, 1, x, a->y, ftw, a->h, 0, 0, c->isfixed);
x += ftw; x += ftw;
w -= ftw; w -= ftw;
} }