Draw panel before systray to reduce flicker

This commit is contained in:
o9000 2017-03-04 12:24:23 +01:00
parent 330f1093bb
commit 8ec7f2dd9c
2 changed files with 17 additions and 17 deletions

View file

@ -1734,13 +1734,6 @@ start:
0);
XSetWindowBackgroundPixmap(server.display, panel->main_win, panel->hidden_pixmap);
} else {
if (panel == (Panel *)systray.area.panel) {
if (refresh_systray && panel && !panel->is_hidden) {
refresh_systray = FALSE;
XSetWindowBackgroundPixmap(server.display, panel->main_win, panel->temp_pmap);
refresh_systray_icons();
}
}
XCopyArea(server.display,
panel->temp_pmap,
panel->main_win,
@ -1751,6 +1744,13 @@ start:
panel->area.height,
0,
0);
if (panel == (Panel *)systray.area.panel) {
if (refresh_systray && panel && !panel->is_hidden) {
refresh_systray = FALSE;
XSetWindowBackgroundPixmap(server.display, panel->main_win, panel->temp_pmap);
refresh_systray_icons();
}
}
}
}
if (first_render) {