mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 17:57:35 +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:
parent
4e88872c8e
commit
4e7e2950bc
1 changed files with 2 additions and 0 deletions
|
@ -909,6 +909,8 @@ void WSWindowManager::compose()
|
||||||
continue;
|
continue;
|
||||||
PainterStateSaver saver(*m_back_painter);
|
PainterStateSaver saver(*m_back_painter);
|
||||||
m_back_painter->add_clip_rect(dirty_rect);
|
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);
|
window.frame().paint(*m_back_painter);
|
||||||
if (!backing_store)
|
if (!backing_store)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue