From 58833eb1d79d7f03402cee0730c309b79f2e4501 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Thu, 7 May 2026 15:21:06 +0100 Subject: layout/scrolling: handle fullscreen manually (#14190) Makes scroll handle fullscreen by itself, allowing for fs scrolls. --- src/layout/algorithm/ModeAlgorithm.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/layout/algorithm/ModeAlgorithm.hpp') diff --git a/src/layout/algorithm/ModeAlgorithm.hpp b/src/layout/algorithm/ModeAlgorithm.hpp index e53d4391..1348a6f4 100644 --- a/src/layout/algorithm/ModeAlgorithm.hpp +++ b/src/layout/algorithm/ModeAlgorithm.hpp @@ -13,6 +13,12 @@ namespace Layout { class ITarget; class CAlgorithm; + struct SFullscreenRequest { + SP target; + eFullscreenMode currentEffectiveMode = static_cast(0); + eFullscreenMode effectiveMode = static_cast(0); + }; + class IModeAlgorithm { public: virtual ~IModeAlgorithm() = default; @@ -44,6 +50,13 @@ namespace Layout { // optional: predict new window's size virtual std::optional predictSizeForNewTarget(); + // optional: allow algorithms to own fullscreen semantics for a target. + virtual eFullscreenRequestResult requestFullscreen(const SFullscreenRequest& request); + + // optional: expose an algorithm-owned fullscreen target and whether it is monitor-exclusive. + virtual SP layoutFullscreenTarget() const; + virtual bool layoutFullscreenCoversMonitor() const; + // Impl'd here: focal point for dir virtual std::optional focalPointForDir(SP t, Math::eDirection dir); -- cgit v1.2.3