mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
LibGUI: Use floating rect when saving window state on exit
Previously, exiting a fullscreen application when `save_size_and_position_on_close()` was used would lead to the application having an unexpectedly large size when it was reopened. Exiting a maximized application would lead to the restore button not working as expected when the application was reopened.
This commit is contained in:
parent
50d0d6e710
commit
24aa43f3fd
2 changed files with 18 additions and 4 deletions
|
@ -109,6 +109,7 @@ public:
|
|||
int height() const { return rect().height(); }
|
||||
|
||||
Gfx::IntRect rect() const;
|
||||
Gfx::IntRect floating_rect() const;
|
||||
Gfx::IntRect applet_rect_on_screen() const;
|
||||
Gfx::IntSize size() const { return rect().size(); }
|
||||
void set_rect(Gfx::IntRect const&);
|
||||
|
@ -300,6 +301,7 @@ private:
|
|||
WeakPtr<Widget> m_hovered_widget;
|
||||
Gfx::IntRect m_rect_when_windowless;
|
||||
Gfx::IntSize m_minimum_size_when_windowless { 0, 0 };
|
||||
Gfx::IntRect m_floating_rect;
|
||||
DeprecatedString m_title_when_windowless;
|
||||
Vector<Gfx::IntRect, 32> m_pending_paint_event_rects;
|
||||
Gfx::IntSize m_size_increment;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue