aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-09-17 16:46:04 +0100
committervaxerski <[email protected]>2023-09-17 16:46:04 +0100
commitaf15b15b4bc43ca2a97cbd2b8acdfccee50f4376 (patch)
tree7c268bb25f5ce6e6f98c20454e8f757dcc3e1e2d
parentf72e04d63bce38fa72497e968246aa303e5e22ba (diff)
downloadHyprland-af15b15b4bc43ca2a97cbd2b8acdfccee50f4376.tar.gz
Hyprland-af15b15b4bc43ca2a97cbd2b8acdfccee50f4376.zip
input: guard constraint in unconstrainMouse
-rw-r--r--src/managers/input/InputManager.cpp3
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;