diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-03-20 01:30:19 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-03-20 01:30:41 +0000 |
| commit | f6038837bc12a5f22808ceea0641dd9fe17d8094 (patch) | |
| tree | b3ab14beed8a633871adb9a0c908821630c1b261 /src/desktop/Constraint.cpp | |
| parent | 07ab3b8cd654561ba346e40e16d44e918afa0ba0 (diff) | |
constraint: do not disable constraints in destroy
fixes #5170
Diffstat (limited to 'src/desktop/Constraint.cpp')
| -rw-r--r-- | src/desktop/Constraint.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/desktop/Constraint.cpp b/src/desktop/Constraint.cpp index 2109ef1c..e7858321 100644 --- a/src/desktop/Constraint.cpp +++ b/src/desktop/Constraint.cpp @@ -33,8 +33,11 @@ void CConstraint::initSignals() { } void CConstraint::onDestroy() { - if (active()) - deactivate(); + hyprListener_setConstraintRegion.removeCallback(); + hyprListener_destroyConstraint.removeCallback(); + + if (active() && isLocked()) + g_pCompositor->warpCursorTo(logicPositionHint(), true); // this is us m_pOwner->m_pConstraint.reset(); |
