From 2e763764bfdaee2039961c6c220b5d6af31712d4 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 27 Apr 2024 21:15:16 +0100 Subject: [PATCH] pointer-constraints: don't warp on entering a confined pointer ref #5774 --- src/protocols/PointerConstraints.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protocols/PointerConstraints.cpp b/src/protocols/PointerConstraints.cpp index d7613e33..ea7f4654 100644 --- a/src/protocols/PointerConstraints.cpp +++ b/src/protocols/PointerConstraints.cpp @@ -134,7 +134,8 @@ void CPointerConstraint::activate() { wlr_seat_pointer_enter(g_pCompositor->m_sSeat.seat, pHLSurface->wlr(), LOCAL.x, LOCAL.y); } - g_pCompositor->warpCursorTo(logicPositionHint(), true); + if (locked) + g_pCompositor->warpCursorTo(logicPositionHint(), true); if (locked) resourceL->sendLocked();