]> git.sur5r.net Git - i3/i3/commitdiff
Only redraw right-hand side border if a non-pango font is used.
authorIngo Bürk <ingo.buerk@tngtech.com>
Wed, 13 Apr 2016 17:48:53 +0000 (19:48 +0200)
committerIngo Bürk <ingo.buerk@tngtech.com>
Fri, 15 Apr 2016 16:51:20 +0000 (18:51 +0200)
relates to #2247

src/x.c

diff --git a/src/x.c b/src/x.c
index 43db952dae9b77cf5dc8420988793a66c1fa1f4c..5e50b4cd6437912af2ccc77051a075be9074c5fa 100644 (file)
--- a/src/x.c
+++ b/src/x.c
@@ -332,8 +332,10 @@ static void x_draw_decoration_after_title(Con *con, struct deco_render_params *p
     /* Redraw the right border to cut off any text that went past it.
      * This is necessary when the text was drawn using XCB since cutting text off
      * automatically does not work there. For pango rendering, this isn't necessary. */
-    draw_util_rectangle(conn, &(con->parent->frame_buffer), p->color->background,
-                        dr->x + dr->width + br.width, dr->y, -br.width, dr->height);
+    if (!font_is_pango()) {
+        draw_util_rectangle(conn, &(con->parent->frame_buffer), p->color->background,
+                            dr->x + dr->width + br.width, dr->y, -br.width, dr->height);
+    }
 
     /* Draw a 1px separator line before and after every tab, so that tabs can
      * be easily distinguished. */