summaryrefslogtreecommitdiffhomepage
path: root/patch/bar_awesomebar.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-09-04 11:33:52 +0200
committerbakkeby <[email protected]>2020-09-04 11:33:52 +0200
commit69277ea1a863463399fe9e50bb9228255e816244 (patch)
treed3cc9c04e744778dd161941b733cc2c3461c612e /patch/bar_awesomebar.c
parent5acfb55a9c9ffc614f5e88cecc01f386fabea8eb (diff)
downloaddwm-flexipatch-69277ea1a863463399fe9e50bb9228255e816244.tar.gz
dwm-flexipatch-69277ea1a863463399fe9e50bb9228255e816244.zip
awesomebar: correct centeredwindowname check
Diffstat (limited to 'patch/bar_awesomebar.c')
-rw-r--r--patch/bar_awesomebar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/patch/bar_awesomebar.c b/patch/bar_awesomebar.c
index e3b80cc..4bf537e 100644
--- a/patch/bar_awesomebar.c
+++ b/patch/bar_awesomebar.c
@@ -39,7 +39,7 @@ draw_awesomebar(Bar *bar, BarDrawArg *a)
pad = lrpad / 2;
#if BAR_CENTEREDWINDOWNAME_PATCH
- if (TEXTW(c->name) < w)
+ if (TEXTW(c->name) < tabw)
pad = (tabw - TEXTW(c->name) + lrpad) / 2;
#endif // BAR_CENTEREDWINDOWNAME_PATCH
@@ -77,4 +77,4 @@ click_awesomebar(Bar *bar, Arg *arg, BarClickArg *a)
return ClkWinTitle;
}
return -1;
-} \ No newline at end of file
+}