From fa69de8ab6cc17bb763a1586c55847c5d5a82a83 Mon Sep 17 00:00:00 2001 From: Agent00Ming <107314235+Agent00Ming@users.noreply.github.com> Date: Mon, 6 May 2024 12:19:26 -0400 Subject: [PATCH] pointer-constraints: Remove unnecessary cursor warps (#5895) modified: src/protocols/PointerConstraints.cpp Co-authored-by: Agent_00Ming --- src/protocols/PointerConstraints.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/protocols/PointerConstraints.cpp b/src/protocols/PointerConstraints.cpp index 95356430..7b5729c0 100644 --- a/src/protocols/PointerConstraints.cpp +++ b/src/protocols/PointerConstraints.cpp @@ -110,9 +110,6 @@ void CPointerConstraint::deactivate() { active = false; - if (locked) - g_pCompositor->warpCursorTo(logicPositionHint(), true); - if (lifetime == ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ONESHOT) { dead = true; // remove from inputmgr @@ -134,9 +131,6 @@ void CPointerConstraint::activate() { wlr_seat_pointer_enter(g_pCompositor->m_sSeat.seat, pHLSurface->wlr(), LOCAL.x, LOCAL.y); } - if (locked) - g_pCompositor->warpCursorTo(logicPositionHint(), true); - if (locked) resourceL->sendLocked(); else