From af15b15b4bc43ca2a97cbd2b8acdfccee50f4376 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 17 Sep 2023 16:46:04 +0100 Subject: input: guard constraint in unconstrainMouse --- src/managers/input/InputManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 632dc251..468f2816 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -1290,7 +1290,8 @@ void CInputManager::unconstrainMouse() { wlr_pointer_constraint_v1_send_deactivated(g_pCompositor->m_sSeat.mouse->currentConstraint); const auto PCONSTRAINT = constraintFromWlr(g_pCompositor->m_sSeat.mouse->currentConstraint); - PCONSTRAINT->active = false; + if (PCONSTRAINT) + PCONSTRAINT->active = false; g_pCompositor->m_sSeat.mouse->constraintActive = false; -- cgit v1.2.3