diff options
Diffstat (limited to 'Userland/Services/WindowServer/WindowFrame.cpp')
-rw-r--r-- | Userland/Services/WindowServer/WindowFrame.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Userland/Services/WindowServer/WindowFrame.cpp b/Userland/Services/WindowServer/WindowFrame.cpp index 15b6ba2e66..8b72964733 100644 --- a/Userland/Services/WindowServer/WindowFrame.cpp +++ b/Userland/Services/WindowServer/WindowFrame.cpp @@ -598,25 +598,7 @@ void WindowFrame::window_rect_changed(const Gfx::IntRect& old_rect, const Gfx::I { layout_buttons(); - auto new_frame_rect = constrained_render_rect_to_screen(frame_rect_for_window(m_window, new_rect)); set_dirty(true); - auto& compositor = Compositor::the(); - - { - // Invalidate the areas outside of the new rect. Use the last computed occlusions for this purpose - // as we can't reliably calculate the previous frame rect anymore. The window state (e.g. maximized - // or tiled) may affect the calculations and it may have already been changed by the time we get - // called here. - auto invalidate_opaque = m_window.opaque_rects().shatter(new_frame_rect); - for (auto& rect : invalidate_opaque.rects()) - compositor.invalidate_screen(rect); - auto invalidate_transparent = m_window.transparency_rects().shatter(new_frame_rect); - for (auto& rect : invalidate_transparent.rects()) - compositor.invalidate_screen(rect); - } - - compositor.invalidate_occlusions(); - WindowManager::the().notify_rect_changed(m_window, old_rect, new_rect); } |