Skip to content

Commit

Permalink
pointer-constraints: don't warp on entering a confined pointer
Browse files Browse the repository at this point in the history
ref #5774
  • Loading branch information
vaxerski committed Apr 27, 2024
1 parent 90a53ae commit 2e76376
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/protocols/PointerConstraints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2e76376

Please sign in to comment.