mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-11 02:01:53 -07:00
pointer-constraints: Remove unnecessary cursor warps (#5895)
modified: src/protocols/PointerConstraints.cpp Co-authored-by: Agent_00Ming <agent00ming9366@gmail.com>
This commit is contained in:
@@ -110,9 +110,6 @@ void CPointerConstraint::deactivate() {
|
|||||||
|
|
||||||
active = false;
|
active = false;
|
||||||
|
|
||||||
if (locked)
|
|
||||||
g_pCompositor->warpCursorTo(logicPositionHint(), true);
|
|
||||||
|
|
||||||
if (lifetime == ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ONESHOT) {
|
if (lifetime == ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ONESHOT) {
|
||||||
dead = true;
|
dead = true;
|
||||||
// remove from inputmgr
|
// remove from inputmgr
|
||||||
@@ -134,9 +131,6 @@ void CPointerConstraint::activate() {
|
|||||||
wlr_seat_pointer_enter(g_pCompositor->m_sSeat.seat, pHLSurface->wlr(), LOCAL.x, LOCAL.y);
|
wlr_seat_pointer_enter(g_pCompositor->m_sSeat.seat, pHLSurface->wlr(), LOCAL.x, LOCAL.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (locked)
|
|
||||||
g_pCompositor->warpCursorTo(logicPositionHint(), true);
|
|
||||||
|
|
||||||
if (locked)
|
if (locked)
|
||||||
resourceL->sendLocked();
|
resourceL->sendLocked();
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user