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

WindowServer: Un-tile window if resizing warrants it

Since being tiled means we restrict rendering a window to the screen it
is on (so that we don't "bleed" into an adjacent screen), we need to
untile it if the window either can't fit into the screen, or it is
detached from the screen edges.
This commit is contained in:
Tom 2021-06-27 10:30:03 -06:00 committed by Andreas Kling
parent d3fc8652c7
commit 091628202f
3 changed files with 114 additions and 25 deletions

View file

@ -100,6 +100,8 @@ public:
WindowTileType tiled() const { return m_tiled; }
void set_tiled(Screen*, WindowTileType);
WindowTileType tile_type_based_on_rect(Gfx::IntRect const&) const;
void check_untile_due_to_resize(Gfx::IntRect const&);
bool set_untiled(Optional<Gfx::IntPoint> fixed_point = {});
bool is_occluded() const { return m_occluded; }