diff --git a/patch/bar_awesomebar.c b/patch/bar_awesomebar.c index e8961d7..ec5fa55 100644 --- a/patch/bar_awesomebar.c +++ b/patch/bar_awesomebar.c @@ -45,7 +45,7 @@ draw_awesomebar(Bar *bar, BarArg *a) drw_setscheme(drw, scheme[scm]); 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); } } diff --git a/patch/bar_fancybar.c b/patch/bar_fancybar.c index eb55d45..0222ca7 100644 --- a/patch/bar_fancybar.c +++ b/patch/bar_fancybar.c @@ -53,7 +53,7 @@ draw_fancybar(Bar *bar, BarArg *a) drw_setscheme(drw, scheme[m->sel == c ? SchemeTitleSel : SchemeTitleNorm]); 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); - 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; w -= ftw; }