mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 17:26:00 +01: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:
parent
05e4a3f1a8
commit
fa69de8ab6
1 changed files with 0 additions and 6 deletions
|
@ -110,9 +110,6 @@ void CPointerConstraint::deactivate() {
|
|||
|
||||
active = false;
|
||||
|
||||
if (locked)
|
||||
g_pCompositor->warpCursorTo(logicPositionHint(), true);
|
||||
|
||||
if (lifetime == ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ONESHOT) {
|
||||
dead = true;
|
||||
// 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);
|
||||
}
|
||||
|
||||
if (locked)
|
||||
g_pCompositor->warpCursorTo(logicPositionHint(), true);
|
||||
|
||||
if (locked)
|
||||
resourceL->sendLocked();
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue