if (panel_strut_policy == STRUT_FOLLOW_SIZE)
update_strut(p);
- XMapSubwindows(server.dsp, panel->main_win);
+ XMapSubwindows(server.dsp, panel->main_win); // systray windows
if (panel_horizontal) {
if (panel_position & TOP)
XResizeWindow(server.dsp, panel->main_win, panel->area.width, panel->area.height);
if (panel_strut_policy == STRUT_FOLLOW_SIZE)
update_strut(p);
- XUnmapSubwindows(server.dsp, panel->main_win);
+ XUnmapSubwindows(server.dsp, panel->main_win); // systray windows
int diff = (panel_horizontal ? panel->area.height : panel->area.width) - panel_autohide_height;
if (panel_horizontal) {
if (panel_position & TOP)
for (i=0 ; i < nb_panel ; i++) {
panel = &panel1[i];
- if (panel->is_hidden)
+ if (panel->is_hidden) {
XCopyArea(server.dsp, panel->hidden_pixmap, panel->main_win, server.gc, 0, 0, panel->hidden_width, panel->hidden_height, 0, 0);
+ XSetWindowBackgroundPixmap(server.dsp, panel->main_win, panel->hidden_pixmap);
+ }
else {
if (panel->temp_pmap) XFreePixmap(server.dsp, panel->temp_pmap);
panel->temp_pmap = XCreatePixmap(server.dsp, server.root_win, panel->area.width, panel->area.height, server.depth);