From 4e7e2950bc53213fd7dbc5b48bf04f67b9197fe6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 16 May 2019 20:11:09 +0200 Subject: WindowServer: Fill unbacked windows with their background color. This avoids flashing a content-less window frame during client startup. --- Servers/WindowServer/WSWindowManager.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Servers') 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; -- cgit v1.2.3