*fix* broke systray with last checkin for fake transparency
*fix* some real transparency stuff fixed... it seems as if it is done now git-svn-id: http://tint2.googlecode.com/svn/trunk@312 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
19
src/panel.c
19
src/panel.c
@@ -488,17 +488,16 @@ void set_panel_background(Panel *p)
|
||||
|
||||
if (real_transparency) {
|
||||
clear_pixmap(p->area.pix.pmap, 0, 0, p->area.width, p->area.height);
|
||||
return; // no need for background pixmap, a transparent one is enough
|
||||
}
|
||||
|
||||
get_root_pixmap();
|
||||
|
||||
// copy background (server.root_pmap) in panel.area.pix.pmap
|
||||
Window dummy;
|
||||
int x, y;
|
||||
XTranslateCoordinates(server.dsp, p->main_win, server.root_win, 0, 0, &x, &y, &dummy);
|
||||
XSetTSOrigin(server.dsp, server.gc, -x, -y) ;
|
||||
XFillRectangle(server.dsp, p->area.pix.pmap, server.gc, 0, 0, p->area.width, p->area.height);
|
||||
else {
|
||||
get_root_pixmap();
|
||||
// copy background (server.root_pmap) in panel.area.pix.pmap
|
||||
Window dummy;
|
||||
int x, y;
|
||||
XTranslateCoordinates(server.dsp, p->main_win, server.root_win, 0, 0, &x, &y, &dummy);
|
||||
XSetTSOrigin(server.dsp, server.gc, -x, -y) ;
|
||||
XFillRectangle(server.dsp, p->area.pix.pmap, server.gc, 0, 0, p->area.width, p->area.height);
|
||||
}
|
||||
|
||||
// draw background panel
|
||||
cairo_surface_t *cs;
|
||||
|
||||
Reference in New Issue
Block a user