From 091628202f17015d3cb3c1813d5deb5139410a13 Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 27 Jun 2021 10:30:03 -0600 Subject: 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. --- Userland/Services/WindowServer/Window.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Userland/Services/WindowServer/Window.h') diff --git a/Userland/Services/WindowServer/Window.h b/Userland/Services/WindowServer/Window.h index 2b94efa820..09fc32431d 100644 --- a/Userland/Services/WindowServer/Window.h +++ b/Userland/Services/WindowServer/Window.h @@ -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 fixed_point = {}); bool is_occluded() const { return m_occluded; } -- cgit v1.2.3