pointer-constraints: Remove unnecessary cursor warps (#5895)

modified:   src/protocols/PointerConstraints.cpp

Co-authored-by: Agent_00Ming <agent00ming9366@gmail.com>
This commit is contained in:
Agent00Ming 2024-05-06 12:19:26 -04:00 committed by GitHub
parent 05e4a3f1a8
commit fa69de8ab6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 6 deletions

View File

@ -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