From df2f479810725667b180f50ddb4c100538872ecb Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Mon, 22 Aug 2022 14:22:22 -0400 Subject: [PATCH] WindowServer: Don't move child windows in unison with their parents This was a cludge for ComboBox ListView windows when they were first implemented. The behavior is no longer needed and not very ergonomic when moving Normal windows around. --- Userland/Services/WindowServer/Window.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Userland/Services/WindowServer/Window.cpp b/Userland/Services/WindowServer/Window.cpp index 748d9b1564..1789815fda 100644 --- a/Userland/Services/WindowServer/Window.cpp +++ b/Userland/Services/WindowServer/Window.cpp @@ -164,14 +164,6 @@ void Window::set_rect_without_repaint(Gfx::IntRect const& rect) auto old_rect = m_rect; m_rect = rect; - if (old_rect.size() == m_rect.size()) { - auto delta = m_rect.location() - old_rect.location(); - for (auto& child_window : m_child_windows) { - if (child_window) - child_window->move_by(delta); - } - } - invalidate(true, old_rect.size() != rect.size()); m_frame.window_rect_changed(old_rect, rect); invalidate_last_rendered_screen_rects();