summaryrefslogtreecommitdiff
path: root/src/layout/LayoutManager.cpp
diff options
context:
space:
mode:
authorJames Bingen <47846774+CptHuba@users.noreply.github.com>2026-03-10 11:04:50 +0100
committerGitHub <noreply@github.com>2026-03-10 10:04:50 +0000
commit8217dabc80814b6d2741dc0a75c8398fc770b26c (patch)
treec4bfd348f58bac2b66f6232aeaed4b02c43397db /src/layout/LayoutManager.cpp
parent8a12d6cf7e3b11ea46e6d76f219b1d1cdde9e797 (diff)
layout: fix null deref in focalPointForDir and moveInDirection (#13652)
Added a guard against expired m_parent weak pointer in IModeAlgorithm::focalPointForDir when the fullscreen monitor path is taken, and also added a null check in CLayoutManager::moveInDirection. This seemed to have fixed a segfault triggered by a 3-finger swipe gesture end on a fullscreen tiled window.
Diffstat (limited to 'src/layout/LayoutManager.cpp')
-rw-r--r--src/layout/LayoutManager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/layout/LayoutManager.cpp b/src/layout/LayoutManager.cpp
index 3f28085f..d5103fb5 100644
--- a/src/layout/LayoutManager.cpp
+++ b/src/layout/LayoutManager.cpp
@@ -125,6 +125,9 @@ void CLayoutManager::moveInDirection(SP<ITarget> target, const std::string& dire
return;
}
+ if (!target->space())
+ return;
+
target->space()->moveTargetInDirection(target, dir, silent);
}