summaryrefslogtreecommitdiff
path: root/Userland/Services/WindowServer/Window.h
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2021-06-27 10:30:03 -0600
committerAndreas Kling <kling@serenityos.org>2021-06-27 22:35:12 +0200
commit091628202f17015d3cb3c1813d5deb5139410a13 (patch)
tree744c12b1a51122c68324ff028c5c19090a50ba2f /Userland/Services/WindowServer/Window.h
parentd3fc8652c7fb989b69200503db00ed9a07c8e1da (diff)
downloadserenity-091628202f17015d3cb3c1813d5deb5139410a13.zip
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.
Diffstat (limited to 'Userland/Services/WindowServer/Window.h')
-rw-r--r--Userland/Services/WindowServer/Window.h2
1 files changed, 2 insertions, 0 deletions
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<Gfx::IntPoint> fixed_point = {});
bool is_occluded() const { return m_occluded; }