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:
parent
4e88872c8e
commit
4e7e2950bc
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue