mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 16:25: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,6 +94,8 @@ void CConstraint::deactivate() {
|
||||||
|
|
||||||
wlr_pointer_constraint_v1_send_deactivated(m_pConstraint);
|
wlr_pointer_constraint_v1_send_deactivated(m_pConstraint);
|
||||||
m_bActive = false;
|
m_bActive = false;
|
||||||
|
|
||||||
|
if (isLocked())
|
||||||
g_pCompositor->warpCursorTo(logicPositionHint(), true);
|
g_pCompositor->warpCursorTo(logicPositionHint(), true);
|
||||||
|
|
||||||
if (m_pConstraint->lifetime == ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ONESHOT)
|
if (m_pConstraint->lifetime == ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ONESHOT)
|
||||||
|
|
Loading…
Reference in a new issue