mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:37: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;
|
return;
|
||||||
m_tile_type = maximized ? WindowTileType::Maximized : WindowTileType::None;
|
m_tile_type = maximized ? WindowTileType::Maximized : WindowTileType::None;
|
||||||
update_window_menu_items();
|
update_window_menu_items();
|
||||||
if (maximized) {
|
if (maximized)
|
||||||
m_unmaximized_rect = m_floating_rect;
|
|
||||||
set_rect(WindowManager::the().tiled_window_rect(*this));
|
set_rect(WindowManager::the().tiled_window_rect(*this));
|
||||||
} else {
|
else
|
||||||
set_rect(m_unmaximized_rect);
|
set_rect(m_floating_rect);
|
||||||
}
|
|
||||||
m_frame.did_set_maximized({}, maximized);
|
m_frame.did_set_maximized({}, maximized);
|
||||||
Core::EventLoop::current().post_event(*this, make<ResizeEvent>(m_rect));
|
Core::EventLoop::current().post_event(*this, make<ResizeEvent>(m_rect));
|
||||||
set_default_positioned(false);
|
set_default_positioned(false);
|
||||||
|
|
|
@ -455,7 +455,6 @@ private:
|
||||||
RefPtr<Cursor> m_cursor_override;
|
RefPtr<Cursor> m_cursor_override;
|
||||||
WindowFrame m_frame;
|
WindowFrame m_frame;
|
||||||
Gfx::DisjointRectSet m_pending_paint_rects;
|
Gfx::DisjointRectSet m_pending_paint_rects;
|
||||||
Gfx::IntRect m_unmaximized_rect;
|
|
||||||
Gfx::IntRect m_rect_in_applet_area;
|
Gfx::IntRect m_rect_in_applet_area;
|
||||||
RefPtr<Menu> m_window_menu;
|
RefPtr<Menu> m_window_menu;
|
||||||
MenuItem* m_window_menu_minimize_item { nullptr };
|
MenuItem* m_window_menu_minimize_item { nullptr };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue