mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 09:09:48 +01:00
input: don't warp region constraints
This commit is contained in:
parent
1a6f961de2
commit
f4e99a36a9
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ void Events::listener_destroyConstraint(void* owner, void* data) {
|
||||||
|
|
||||||
const auto PWINDOW = g_pCompositor->getConstraintWindow(g_pCompositor->m_sSeat.mouse);
|
const auto PWINDOW = g_pCompositor->getConstraintWindow(g_pCompositor->m_sSeat.mouse);
|
||||||
|
|
||||||
if (PWINDOW && PCONSTRAINT->active)
|
if (PWINDOW && PCONSTRAINT->active && PCONSTRAINT->constraint->type == WLR_POINTER_CONSTRAINT_V1_LOCKED)
|
||||||
g_pInputManager->warpMouseToConstraintMiddle(PCONSTRAINT);
|
g_pInputManager->warpMouseToConstraintMiddle(PCONSTRAINT);
|
||||||
|
|
||||||
PCONSTRAINT->pMouse->currentConstraint = nullptr;
|
PCONSTRAINT->pMouse->currentConstraint = nullptr;
|
||||||
|
|
Loading…
Reference in a new issue