1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:58:11 +00:00

WindowServer: Fill unbacked windows with their background color.

This avoids flashing a content-less window frame during client startup.
This commit is contained in:
Andreas Kling 2019-05-16 20:11:09 +02:00
parent 4e88872c8e
commit 4e7e2950bc

View file

@ -909,6 +909,8 @@ void WSWindowManager::compose()
continue;
PainterStateSaver saver(*m_back_painter);
m_back_painter->add_clip_rect(dirty_rect);
if (!backing_store)
m_back_painter->fill_rect(dirty_rect, window.background_color());
window.frame().paint(*m_back_painter);
if (!backing_store)
continue;