From c98a00678c1f3b051c2440b72f58cd9ecfdae70d Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 30 Aug 2023 17:23:35 +0200 Subject: input: fix xwayland constraint calcs some minor adjustments, fixes #3028 --- src/events/Devices.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/events/Devices.cpp') diff --git a/src/events/Devices.cpp b/src/events/Devices.cpp index 7a836edd..c80337f8 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->positionHint != Vector2D{-1, -1}) + if (PWINDOW && PCONSTRAINT->active) g_pInputManager->warpMouseToConstraintMiddle(PCONSTRAINT); PCONSTRAINT->pMouse->currentConstraint = nullptr; -- cgit v1.2.3