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/LayoutManager.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/layout/LayoutManager.cpp') diff --git a/src/layout/LayoutManager.cpp b/src/layout/LayoutManager.cpp index f90cedf6..875ae2ae 100644 --- a/src/layout/LayoutManager.cpp +++ b/src/layout/LayoutManager.cpp @@ -94,9 +94,11 @@ void CLayoutManager::endDragTarget() { m_dragStateController->dragEnd(); } -void CLayoutManager::fullscreenRequestForTarget(SP target, eFullscreenMode currentEffectiveMode, eFullscreenMode effectiveMode) { - if (target->space()) - target->space()->setFullscreen(target, effectiveMode); +eFullscreenRequestResult CLayoutManager::fullscreenRequestForTarget(SP target, eFullscreenMode currentEffectiveMode, eFullscreenMode effectiveMode) { + if (target && target->space()) + return target->space()->setFullscreen(target, currentEffectiveMode, effectiveMode); + + return FULLSCREEN_REQUEST_DEFAULT; } void CLayoutManager::switchTargets(SP a, SP b, bool preserveFocus) { -- cgit v1.2.3