mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 08:05:59 +01:00
parent
07ab3b8cd6
commit
f6038837bc
1 changed files with 5 additions and 2 deletions
|
@ -33,8 +33,11 @@ void CConstraint::initSignals() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CConstraint::onDestroy() {
|
void CConstraint::onDestroy() {
|
||||||
if (active())
|
hyprListener_setConstraintRegion.removeCallback();
|
||||||
deactivate();
|
hyprListener_destroyConstraint.removeCallback();
|
||||||
|
|
||||||
|
if (active() && isLocked())
|
||||||
|
g_pCompositor->warpCursorTo(logicPositionHint(), true);
|
||||||
|
|
||||||
// this is us
|
// this is us
|
||||||
m_pOwner->m_pConstraint.reset();
|
m_pOwner->m_pConstraint.reset();
|
||||||
|
|
Loading…
Reference in a new issue