mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-11 02:01:53 -07:00
constraints: only warp cursor on deactivate if constraint is locked. (#5056)
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user