- else
- XClearArea(server.dsp, traywin->id, 0, 0, traywin->width, traywin->height, True);
+ else {
+ Pixmap pix = XCreatePixmap(server.dsp, server.root_win, traywin->width, traywin->height, server.depth);
+ XCopyArea(server.dsp, panel->temp_pmap, pix, server.gc, traywin->x, traywin->y, traywin->width, traywin->height, 0, 0);
+ XClearArea(server.dsp, traywin->tray_id, 0, 0, traywin->width, traywin->height, True);
+ XSetWindowBackgroundPixmap(server.dsp, traywin->id, pix);
+ }