Explorar o código

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.
Tom %!s(int64=4) %!d(string=hai) anos
pai
achega
6bb1825366
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Userland/Services/WindowServer/Compositor.cpp

+ 1 - 0
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)