Преглед изворни кода

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 пре 4 година
родитељ
комит
6bb1825366
1 измењених фајлова са 1 додато и 0 уклоњено
  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())
     if (!current_render_rect.is_empty())
         invalidate_screen(current_render_rect);
         invalidate_screen(current_render_rect);
     m_overlay_list.remove(overlay);
     m_overlay_list.remove(overlay);
+    overlay_rects_changed();
 }
 }
 
 
 void Compositor::ScreenData::draw_cursor(Screen& screen, const Gfx::IntRect& cursor_rect)
 void Compositor::ScreenData::draw_cursor(Screen& screen, const Gfx::IntRect& cursor_rect)