From f4e99a36a9768b05c5d828bb630f31d8ae4c8270 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 10 Sep 2023 12:49:50 +0100 Subject: [PATCH] input: don't warp region constraints --- src/events/Devices.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;