]> git.sur5r.net Git - i3/i3/commitdiff
draw consistent borders for each frame in a tabbed/stacked container
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 3 Mar 2010 07:49:07 +0000 (08:49 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 3 Mar 2010 07:49:07 +0000 (08:49 +0100)
The condition was a relict from older rendering code, I think.
This fixes #172.

src/layout.c

index c189a9503137c64fdaadefe3da37dfb33fa0252c..0e1eecb176f33a2ede6b4a7c35732661b47ec0d7 100644 (file)
@@ -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 */