mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:47:35 +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:
parent
2b2c317c2d
commit
df2f479810
1 changed files with 0 additions and 8 deletions
|
@ -164,14 +164,6 @@ void Window::set_rect_without_repaint(Gfx::IntRect const& rect)
|
||||||
auto old_rect = m_rect;
|
auto old_rect = m_rect;
|
||||||
m_rect = 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());
|
invalidate(true, old_rect.size() != rect.size());
|
||||||
m_frame.window_rect_changed(old_rect, rect);
|
m_frame.window_rect_changed(old_rect, rect);
|
||||||
invalidate_last_rendered_screen_rects();
|
invalidate_last_rendered_screen_rects();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue