Reevaluate stacking order when an override-redirect window is added

The stacking order needs to be re-evaluated so Window.stackingOrder is
updated.
This commit is contained in:
Vlad Zahorodnii 2023-03-02 20:02:32 +02:00
parent b099ad8ade
commit 219b6c6b50

View file

@ -969,6 +969,7 @@ void Workspace::addUnmanaged(Unmanaged *window)
{
m_unmanaged.append(window);
addToStack(window);
updateStackingOrder(true);
}
/**
@ -991,6 +992,7 @@ void Workspace::removeUnmanaged(Unmanaged *window)
Q_ASSERT(m_unmanaged.contains(window));
m_unmanaged.removeAll(window);
removeFromStack(window);
updateStackingOrder();
Q_EMIT unmanagedRemoved(window);
}