From: Michael Stapelberg Date: Thu, 4 Aug 2011 23:03:56 +0000 (+0200) Subject: Fix border rendering (Thanks Paride Legovini) X-Git-Tag: 4.0.2~54^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ec0d67410a5e50627a0c17c7760db8b36bef246f;p=i3%2Fi3 Fix border rendering (Thanks Paride Legovini) --- diff --git a/src/x.c b/src/x.c index f4ebc207..11e9456c 100644 --- 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);