constraint: do not disable constraints in destroy

fixes #5170
This commit is contained in:
Vaxry 2024-03-20 01:30:19 +00:00
parent 07ab3b8cd6
commit f6038837bc

View File

@ -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();