1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

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.
This commit is contained in:
thankyouverycool 2022-08-22 14:22:22 -04:00 committed by Andreas Kling
parent 2b2c317c2d
commit df2f479810

View file

@ -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();