From: Michael Stapelberg Date: Wed, 3 Mar 2010 07:49:07 +0000 (+0100) Subject: draw consistent borders for each frame in a tabbed/stacked container X-Git-Tag: 3.e~6^2~125 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0ec3481c697e5fb6c9392efee630f7ce47905c93;p=i3%2Fi3 draw consistent borders for each frame in a tabbed/stacked container The condition was a relict from older rendering code, I think. This fixes #172. --- diff --git a/src/layout.c b/src/layout.c index c189a950..0e1eecb1 100644 --- a/src/layout.c +++ b/src/layout.c @@ -172,13 +172,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, offset_x, offset_y, offset_x + client->rect.width, offset_y); - if (mode == MODE_DEFAULT || - CIRCLEQ_NEXT_OR_NULL(&(client->container->clients), client, clients) == NULL) - xcb_draw_line(conn, drawable, gc, color->border, - offset_x + 2, /* x */ - offset_y + font->height + 3, /* y */ - offset_x + client->rect.width - 3, /* to_x */ - offset_y + font->height + 3 /* to_y */); + xcb_draw_line(conn, drawable, gc, color->border, + offset_x + 2, /* x */ + offset_y + font->height + 3, /* y */ + offset_x + client->rect.width - 3, /* to_x */ + offset_y + font->height + 3 /* to_y */); } /* If the client has a title, we draw it */