Fix regression in background rendering (issue #549)

This commit is contained in:
o9000 2016-01-27 10:11:48 +01:00
parent efd28f38d9
commit 85536065bc

View file

@ -378,12 +378,11 @@ void draw(Area *a)
a->pix = XCreatePixmap(server.display, server.root_win, a->width, a->height, server.depth); 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; 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) { if (!a->_clear) {
clear_pixmap(a->pix, 0, 0, a->width, a->height); // Add layer of root pixmap (or clear pixmap if real_transparency==true)
if (!server.real_transparency) { 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); 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 { } else {
a->_clear(a); a->_clear(a);
} }