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

WindowServer: Remove m_unmaximized_rect from Window

Superceded by m_floating_rect
This commit is contained in:
thankyouverycool 2022-08-18 07:02:22 -04:00 committed by Andreas Kling
parent 68570e897d
commit ab517aa21d
2 changed files with 3 additions and 6 deletions

View file

@ -423,12 +423,10 @@ void Window::set_maximized(bool maximized)
return;
m_tile_type = maximized ? WindowTileType::Maximized : WindowTileType::None;
update_window_menu_items();
if (maximized) {
m_unmaximized_rect = m_floating_rect;
if (maximized)
set_rect(WindowManager::the().tiled_window_rect(*this));
} else {
set_rect(m_unmaximized_rect);
}
else
set_rect(m_floating_rect);
m_frame.did_set_maximized({}, maximized);
Core::EventLoop::current().post_event(*this, make<ResizeEvent>(m_rect));
set_default_positioned(false);