From ba2bb4722a1884b1c58fc0d49f791c0f180f0c90 Mon Sep 17 00:00:00 2001 From: Andrey Rodionov Date: Sun, 23 Dec 2018 00:27:06 +0300 Subject: [PATCH] Fix a showing of title text when text width is larger than the width of the title and centered or right aligned --- src/border.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/border.c b/src/border.c index b9d90910..c4d6a948 100644 --- a/src/border.c +++ b/src/border.c @@ -453,7 +453,7 @@ void DrawBorderHelper(const ClientNode *np) switch (settings.titleTextAlignment) { case ALIGN_CENTER: - xoffset = (titleWidth - textWidth) / 2; + xoffset = (int)(titleWidth - textWidth) / 2; break; case ALIGN_RIGHT: xoffset = (titleWidth - textWidth);