mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +00:00
WindowServer: Remove m_unmaximized_rect from Window
Superceded by m_floating_rect
This commit is contained in:
parent
68570e897d
commit
ab517aa21d
2 changed files with 3 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -455,7 +455,6 @@ private:
|
|||
RefPtr<Cursor> m_cursor_override;
|
||||
WindowFrame m_frame;
|
||||
Gfx::DisjointRectSet m_pending_paint_rects;
|
||||
Gfx::IntRect m_unmaximized_rect;
|
||||
Gfx::IntRect m_rect_in_applet_area;
|
||||
RefPtr<Menu> m_window_menu;
|
||||
MenuItem* m_window_menu_minimize_item { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue