]> git.sur5r.net Git - i3/i3/commitdiff
Draw the border lines in the window decoration correctly
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 31 May 2009 16:37:47 +0000 (18:37 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 31 May 2009 16:37:47 +0000 (18:37 +0200)
src/layout.c

index 0085cdc4e8cb7344baa20b73618e5cc78b7931e1..0903e2ddb975feeedf939e3af7bdce3570313248 100644 (file)
@@ -153,9 +153,9 @@ void decorate_window(xcb_connection_t *conn, Client *client, xcb_drawable_t draw
         }
 
         /* Draw the lines */
-        xcb_draw_line(conn, drawable, gc, border_color, 2, offset, client->rect.width, offset);
+        xcb_draw_line(conn, drawable, gc, border_color, 0, offset, client->rect.width, offset);
         xcb_draw_line(conn, drawable, gc, border_color, 2, offset + font->height + 3,
-                      2 + client->rect.width, offset + font->height + 3);
+                      client->rect.width - 4, offset + font->height + 3);
 
         /* If the client has a title, we draw it */
         if (client->name != NULL) {