Don't invalidate x stacking order prematurely

Workspace::updateStackingOrder() will mark it as dirty if the stacking
order actually changes due to a constraint being added or removed.
This commit is contained in:
Vlad Zahorodnii 2021-05-12 19:04:04 +03:00
parent c9ee2f06db
commit e29dee951d

View file

@ -570,7 +570,6 @@ void Workspace::constrain(AbstractClient *below, AbstractClient *above)
child->parents << constraint;
}
markXStackingOrderAsDirty();
updateXStackingOrder();
}
@ -599,8 +598,6 @@ void Workspace::unconstrain(AbstractClient *below, AbstractClient *above)
}
delete constraint;
markXStackingOrderAsDirty();
updateStackingOrder();
}