]> git.sur5r.net Git - i3/i3/commitdiff
Fix border rendering (Thanks Paride Legovini)
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 4 Aug 2011 23:03:56 +0000 (01:03 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 4 Aug 2011 23:03:56 +0000 (01:03 +0200)
src/x.c

diff --git a/src/x.c b/src/x.c
index f4ebc207f791fd39a5bacedceee06b5ffdfe2a7b..11e9456c90a5fd6a0817e838ff5b5d82ddda52ec 100644 (file)
--- a/src/x.c
+++ b/src/x.c
@@ -399,11 +399,11 @@ void x_draw_decoration(Con *con) {
     xcb_change_gc_single(conn, parent->pm_gc, XCB_GC_FOREGROUND, p->color->border);
     Rect *dr = &(con->deco_rect);
     xcb_segment_t segments[] = {
-        { dr->x,             dr->y,
-          dr->x + dr->width, dr->y },
+        { dr->x,                 dr->y,
+          dr->x + dr->width - 1, dr->y },
 
-        { dr->x,             dr->y + dr->height - 1,
-          dr->x + dr->width, dr->y + dr->height - 1 }
+        { dr->x + 2,             dr->y + dr->height - 1,
+          dr->x + dr->width - 3, dr->y + dr->height - 1 }
     };
     xcb_poly_segment(conn, parent->pixmap, parent->pm_gc, 2, segments);