From d4818dd2dd21aa9189bb0ee87aff2660b1e22951 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 10 Apr 2019 14:29:47 +0200 Subject: WindowServer: Give windows a "background color" to use for missing parts. When resizing a window, we often end up having to paint some part of it without coverage in the current backing store. This patch makes those cases look nicer by having a fallback background color for each window, passed along with the CreateWindow client message. --- LibGUI/GWindow.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'LibGUI/GWindow.cpp') diff --git a/LibGUI/GWindow.cpp b/LibGUI/GWindow.cpp index 72a5b2fb16..59c5710cca 100644 --- a/LibGUI/GWindow.cpp +++ b/LibGUI/GWindow.cpp @@ -62,6 +62,7 @@ void GWindow::show() request.window.modal = m_modal; request.window.resizable = m_resizable; request.window.opacity = m_opacity_when_windowless; + request.window.background_color = m_background_color.value(); request.window.size_increment = m_size_increment; request.window.base_size = m_base_size; request.window.type = (WSAPI_WindowType)m_window_type; -- cgit v1.2.3