diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-09-17 16:46:04 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-09-17 16:46:04 +0100 |
| commit | af15b15b4bc43ca2a97cbd2b8acdfccee50f4376 (patch) | |
| tree | 7c268bb25f5ce6e6f98c20454e8f757dcc3e1e2d /src/managers/input/InputManager.cpp | |
| parent | f72e04d63bce38fa72497e968246aa303e5e22ba (diff) | |
input: guard constraint in unconstrainMouse
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |
