mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
WindowServer: Fix minor flicker with transparent windows
Do not fill the backing store mismatch area with the solid window color if the window is transparent. This caused some minor flicker when such a window is e.g. snapped to the left/right or maximized.
This commit is contained in:
parent
9f7ec33180
commit
6ea7e67b62
1 changed files with 4 additions and 2 deletions
|
@ -354,8 +354,10 @@ void Compositor::compose()
|
|||
painter.blit(dst, *backing_store, dirty_rect_in_backing_coordinates, window.opacity());
|
||||
}
|
||||
|
||||
for (auto background_rect : window.rect().shatter(backing_rect))
|
||||
painter.fill_rect(background_rect, wm.palette().window());
|
||||
if (window.is_opaque()) {
|
||||
for (auto background_rect : window.rect().shatter(backing_rect))
|
||||
painter.fill_rect(background_rect, wm.palette().window());
|
||||
}
|
||||
};
|
||||
|
||||
auto& dirty_rects = window.dirty_rects();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue