summaryrefslogtreecommitdiff
path: root/Servers
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-16 20:11:09 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-16 20:11:09 +0200
commit4e7e2950bc53213fd7dbc5b48bf04f67b9197fe6 (patch)
tree096646ca5a2733ffec161ef43477adf49beddb1d /Servers
parent4e88872c8ed274cde3526812a6a40e56618b9fb3 (diff)
downloadserenity-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.cpp2
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;