mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
indicators: too wide (full) indicators when using awesombar and fancybar, ref. #69
This commit is contained in:
parent
251e3a23de
commit
8b43316e96
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user