mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
awesomebar: correct centeredwindowname check
This commit is contained in:
parent
5acfb55a9c
commit
69277ea1a8
@ -39,7 +39,7 @@ draw_awesomebar(Bar *bar, BarDrawArg *a)
|
|||||||
|
|
||||||
pad = lrpad / 2;
|
pad = lrpad / 2;
|
||||||
#if BAR_CENTEREDWINDOWNAME_PATCH
|
#if BAR_CENTEREDWINDOWNAME_PATCH
|
||||||
if (TEXTW(c->name) < w)
|
if (TEXTW(c->name) < tabw)
|
||||||
pad = (tabw - TEXTW(c->name) + lrpad) / 2;
|
pad = (tabw - TEXTW(c->name) + lrpad) / 2;
|
||||||
#endif // BAR_CENTEREDWINDOWNAME_PATCH
|
#endif // BAR_CENTEREDWINDOWNAME_PATCH
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user