Draw panel before systray to reduce flicker
This commit is contained in:
14
src/tint.c
14
src/tint.c
@@ -1734,13 +1734,6 @@ start:
|
|||||||
0);
|
0);
|
||||||
XSetWindowBackgroundPixmap(server.display, panel->main_win, panel->hidden_pixmap);
|
XSetWindowBackgroundPixmap(server.display, panel->main_win, panel->hidden_pixmap);
|
||||||
} else {
|
} 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,
|
XCopyArea(server.display,
|
||||||
panel->temp_pmap,
|
panel->temp_pmap,
|
||||||
panel->main_win,
|
panel->main_win,
|
||||||
@@ -1751,6 +1744,13 @@ start:
|
|||||||
panel->area.height,
|
panel->area.height,
|
||||||
0,
|
0,
|
||||||
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) {
|
if (first_render) {
|
||||||
|
|||||||
Reference in New Issue
Block a user