summaryrefslogtreecommitdiff
path: root/src/events/Devices.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/events/Devices.cpp')
-rw-r--r--src/events/Devices.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/events/Devices.cpp b/src/events/Devices.cpp
index 81f97970..1ba6cad4 100644
--- a/src/events/Devices.cpp
+++ b/src/events/Devices.cpp
@@ -122,7 +122,7 @@ void Events::listener_destroyConstraint(void* owner, void* data) {
const auto PWINDOW = g_pCompositor->getConstraintWindow(g_pCompositor->m_sSeat.mouse);
- if (PWINDOW && PCONSTRAINT->active)
+ if (PWINDOW && PCONSTRAINT->active && PCONSTRAINT->constraint->type == WLR_POINTER_CONSTRAINT_V1_LOCKED)
g_pInputManager->warpMouseToConstraintMiddle(PCONSTRAINT);
PCONSTRAINT->pMouse->currentConstraint = nullptr;