Skip to content

Commit

Permalink
Fix regression in background rendering (issue #549)
Browse files Browse the repository at this point in the history
  • Loading branch information
o9000 authored and g7 committed Jan 28, 2016
1 parent e61f919 commit b9c6100
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/util/area.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b9c6100

Please sign in to comment.