From: Michael Stapelberg Date: Sat, 8 Aug 2009 18:20:06 +0000 (+0200) Subject: Fix rendering of window decorations in stacking mode (there was a 1px-line too much) X-Git-Tag: 3.c~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f72576a290f9798c0d688ab3943a1a3c88db5b04;p=i3%2Fi3 Fix rendering of window decorations in stacking mode (there was a 1px-line too much) --- diff --git a/src/layout.c b/src/layout.c index c0471173..5e63c9c7 100644 --- a/src/layout.c +++ b/src/layout.c @@ -156,8 +156,11 @@ void decorate_window(xcb_connection_t *conn, Client *client, xcb_drawable_t draw if (client->titlebar_position != TITLEBAR_OFF) { /* Draw the lines */ xcb_draw_line(conn, drawable, gc, color->border, 0, offset, client->rect.width, offset); - xcb_draw_line(conn, drawable, gc, color->border, 2, offset + font->height + 3, - client->rect.width - 3, offset + font->height + 3); + if ((client->container == NULL || + client->container->mode != MODE_STACK || + CIRCLEQ_NEXT_OR_NULL(&(client->container->clients), client, clients) == NULL)) + xcb_draw_line(conn, drawable, gc, color->border, 2, offset + font->height + 3, + client->rect.width - 3, offset + font->height + 3); } /* If the client has a title, we draw it */