From 0ec3481c697e5fb6c9392efee630f7ce47905c93 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 3 Mar 2010 08:49:07 +0100 Subject: [PATCH] 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. --- src/layout.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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 */