From 85536065bc55f613b4b907b714386e27659cb013 Mon Sep 17 00:00:00 2001 From: o9000 Date: Wed, 27 Jan 2016 10:11:48 +0100 Subject: [PATCH] Fix regression in background rendering (issue #549) --- src/util/area.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/util/area.c b/src/util/area.c index f2c2122..0d599a2 100644 --- a/src/util/area.c +++ b/src/util/area.c @@ -378,12 +378,11 @@ void draw(Area *a) a->pix = XCreatePixmap(server.display, server.root_win, a->width, a->height, server.depth); a->pix_by_state[a->has_mouse_over_effect ? a->mouse_state : 0] = a->pix; - // Add layer of root pixmap (or clear pixmap if real_transparency==true) if (!a->_clear) { - clear_pixmap(a->pix, 0, 0, a->width, a->height); - if (!server.real_transparency) { - XCopyArea(server.display, ((Panel *)a->panel)->temp_pmap, a->pix, server.gc, a->posx, a->posy, a->width, a->height, 0, 0); - } + // Add layer of root pixmap (or clear pixmap if real_transparency==true) + if (server.real_transparency) + clear_pixmap(a->pix, 0, 0, a->width, a->height); + XCopyArea(server.display, ((Panel *)a->panel)->temp_pmap, a->pix, server.gc, a->posx, a->posy, a->width, a->height, 0, 0); } else { a->_clear(a); }