Skip to content

Commit 2e76376

Browse files
committed
pointer-constraints: don't warp on entering a confined pointer
ref #5774
1 parent 90a53ae commit 2e76376

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/protocols/PointerConstraints.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ void CPointerConstraint::activate() {
134134
wlr_seat_pointer_enter(g_pCompositor->m_sSeat.seat, pHLSurface->wlr(), LOCAL.x, LOCAL.y);
135135
}
136136

137-
g_pCompositor->warpCursorTo(logicPositionHint(), true);
137+
if (locked)
138+
g_pCompositor->warpCursorTo(logicPositionHint(), true);
138139

139140
if (locked)
140141
resourceL->sendLocked();

0 commit comments

Comments
 (0)