summaryrefslogtreecommitdiff
path: root/src/layout/LayoutManager.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-03-07 18:47:17 +0000
committerGitHub <noreply@github.com>2026-03-07 18:47:17 +0000
commit3b09986f32ab18c604350307e029ee04d8c114b1 (patch)
tree732292134dea6b715f358f0af7f135d0a5b4be09 /src/layout/LayoutManager.cpp
parent02f30ea15b349d1ed98b608ed06ec88c834592dd (diff)
layout/groupTarget: fix crash on null space assignment (#13614)
nullchecks my life
Diffstat (limited to 'src/layout/LayoutManager.cpp')
-rw-r--r--src/layout/LayoutManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layout/LayoutManager.cpp b/src/layout/LayoutManager.cpp
index 4a93809c..3f28085f 100644
--- a/src/layout/LayoutManager.cpp
+++ b/src/layout/LayoutManager.cpp
@@ -95,7 +95,8 @@ void CLayoutManager::endDragTarget() {
}
void CLayoutManager::fullscreenRequestForTarget(SP<ITarget> target, eFullscreenMode currentEffectiveMode, eFullscreenMode effectiveMode) {
- target->space()->setFullscreen(target, effectiveMode);
+ if (target->space())
+ target->space()->setFullscreen(target, effectiveMode);
}
void CLayoutManager::switchTargets(SP<ITarget> a, SP<ITarget> b, bool preserveFocus) {