mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +00:00
WindowServer: Resize maximised/tiled windows after resolution change
Previously windows would either extend past the screen or stay at their previous smaller size in the corner, now they are resized to fit the new resolution.
This commit is contained in:
parent
23b1d97b0d
commit
7967c80222
3 changed files with 46 additions and 20 deletions
|
@ -218,6 +218,9 @@ public:
|
|||
void start_minimize_animation() { m_minimize_animation_step = 0; }
|
||||
void end_minimize_animation() { m_minimize_animation_step = -1; }
|
||||
|
||||
Gfx::Rect tiled_rect(WindowTileType) const;
|
||||
void recalculate_rect();
|
||||
|
||||
// For InlineLinkedList.
|
||||
// FIXME: Maybe make a ListHashSet and then WindowManager can just use that.
|
||||
Window* m_next { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue