From c73bb1feaafa5a1e1dcbb434ed92d1ce44d3c53b Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 31 May 2009 18:37:47 +0200 Subject: [PATCH] Draw the border lines in the window decoration correctly --- src/layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layout.c b/src/layout.c index 0085cdc4..0903e2dd 100644 --- a/src/layout.c +++ b/src/layout.c @@ -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) {