mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 10:05:59 +01:00
constraints: only warp cursor on deactivate if constraint is locked. (#5056)
This commit is contained in:
parent
b0f98a3d3e
commit
335506d555
1 changed files with 3 additions and 1 deletions
|
@ -94,7 +94,9 @@ void CConstraint::deactivate() {
|
|||
|
||||
wlr_pointer_constraint_v1_send_deactivated(m_pConstraint);
|
||||
m_bActive = false;
|
||||
g_pCompositor->warpCursorTo(logicPositionHint(), true);
|
||||
|
||||
if (isLocked())
|
||||
g_pCompositor->warpCursorTo(logicPositionHint(), true);
|
||||
|
||||
if (m_pConstraint->lifetime == ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ONESHOT)
|
||||
m_bDead = true;
|
||||
|
|
Loading…
Reference in a new issue