summaryrefslogtreecommitdiff
path: root/src/events/Devices.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-08-30 17:23:35 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-08-30 17:23:35 +0200
commitc98a00678c1f3b051c2440b72f58cd9ecfdae70d (patch)
treea2e37f1eecf618efe82c5d85438a363a351456d8 /src/events/Devices.cpp
parentb4f123d1f2af8e7b42c730789d863aa22ea9fb56 (diff)
input: fix xwayland constraint calcs
some minor adjustments, fixes #3028
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 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;