From 8217dabc80814b6d2741dc0a75c8398fc770b26c Mon Sep 17 00:00:00 2001 From: James Bingen <47846774+CptHuba@users.noreply.github.com> Date: Tue, 10 Mar 2026 11:04:50 +0100 Subject: 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. --- src/layout/LayoutManager.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/layout/LayoutManager.cpp') 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 target, const std::string& dire return; } + if (!target->space()) + return; + target->space()->moveTargetInDirection(target, dir, silent); } -- cgit v1.2.3