diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-16 20:11:09 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-16 20:11:09 +0200 |
commit | 4e7e2950bc53213fd7dbc5b48bf04f67b9197fe6 (patch) | |
tree | 096646ca5a2733ffec161ef43477adf49beddb1d /Servers | |
parent | 4e88872c8ed274cde3526812a6a40e56618b9fb3 (diff) | |
download | serenity-4e7e2950bc53213fd7dbc5b48bf04f67b9197fe6.zip |
WindowServer: Fill unbacked windows with their background color.
This avoids flashing a content-less window frame during client startup.
Diffstat (limited to 'Servers')
-rw-r--r-- | Servers/WindowServer/WSWindowManager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Servers/WindowServer/WSWindowManager.cpp b/Servers/WindowServer/WSWindowManager.cpp index f74a2e3a3e..c84434b78d 100644 --- a/Servers/WindowServer/WSWindowManager.cpp +++ b/Servers/WindowServer/WSWindowManager.cpp @@ -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; |