mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-04 18:27:42 +00:00
WindowServer+LibGUI: Force full window repaints after theme change
We were not repainting windows that were occluded at the time of the theme changing. This patch adds a way to bypass occlusion testing when invalidating window rects. Fixes #1249.
This commit is contained in:
@@ -317,11 +317,11 @@ void Window::set_default_icon()
|
||||
m_icon = default_window_icon();
|
||||
}
|
||||
|
||||
void Window::request_update(const Gfx::Rect& rect)
|
||||
void Window::request_update(const Gfx::Rect& rect, bool ignore_occlusion)
|
||||
{
|
||||
if (m_pending_paint_rects.is_empty()) {
|
||||
deferred_invoke([this](auto&) {
|
||||
client()->post_paint_message(*this);
|
||||
deferred_invoke([this, ignore_occlusion](auto&) {
|
||||
client()->post_paint_message(*this, ignore_occlusion);
|
||||
});
|
||||
}
|
||||
m_pending_paint_rects.add(rect);
|
||||
|
||||
Reference in New Issue
Block a user