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
commit 4e7e2950bc
Notes: sideshowbarker 2024-07-19 14:05:41 +09:00

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;