From: Michael Stapelberg Date: Sun, 1 May 2011 20:27:06 +0000 (+0200) Subject: Bugfix: Fix the client background rectangle calculation (Thanks Mike) X-Git-Tag: tree-pr3~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=79323a0be0ba81927ad95ecd564a9cf766540078;p=i3%2Fi3 Bugfix: Fix the client background rectangle calculation (Thanks Mike) Really fixes #364. --- diff --git a/src/x.c b/src/x.c index 3b757ace..358a2201 100644 --- a/src/x.c +++ b/src/x.c @@ -305,14 +305,16 @@ void x_draw_decoration(Con *con) { /* 2: draw the client.background, but only for the parts around the client_rect */ xcb_rectangle_t background[] = { /* top area */ - { 0, deco_rect.height, r->width, w->y }, + { 0, 0, r->width, w->y }, /* bottom area */ { 0, (w->y + w->height), r->width, r->height - (w->y + w->height) }, + /* left area */ + { 0, 0, w->x, r->height }, /* right area */ - { w->width, deco_rect.height, r->width - (w->x + w->width), r->height } + { w->x + w->width, 0, r->width - (w->x + w->width), r->height } }; #if 0 - for (int i = 0; i < 3; i++) + for (int i = 0; i < 4; i++) DLOG("rect is (%d, %d) with %d x %d\n", background[i].x, background[i].y,