awesomebar: correct centeredwindowname check

This commit is contained in:
bakkeby 2020-09-04 11:33:52 +02:00
parent 5acfb55a9c
commit 69277ea1a8

View File

@ -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
@ -77,4 +77,4 @@ click_awesomebar(Bar *bar, Arg *arg, BarClickArg *a)
return ClkWinTitle; return ClkWinTitle;
} }
return -1; return -1;
} }