From 6bb1825366df9c18ca379825b39b27c24f6533ad Mon Sep 17 00:00:00 2001 From: Tom Date: Fri, 16 Jul 2021 19:05:01 -0600 Subject: [PATCH] WindowServer: Recompute occlusions when removing an overlay This makes sure we don't needlessly render areas with transparency that used to be occupied by an overlay. --- Userland/Services/WindowServer/Compositor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Services/WindowServer/Compositor.cpp b/Userland/Services/WindowServer/Compositor.cpp index 83c7116318..6ca2a9b06b 100644 --- a/Userland/Services/WindowServer/Compositor.cpp +++ b/Userland/Services/WindowServer/Compositor.cpp @@ -904,6 +904,7 @@ void Compositor::remove_overlay(Overlay& overlay) if (!current_render_rect.is_empty()) invalidate_screen(current_render_rect); m_overlay_list.remove(overlay); + overlay_rects_changed(); } void Compositor::ScreenData::draw_cursor(Screen& screen, const Gfx::IntRect& cursor_rect)