Make Workspace::removeUnmanaged() keep the window in the stack

It's leftover after the Deleted type. The unmanaged window will be
removed from the stack when all its references are dropped and
Workspace::removeDeleted() is called.

CCBUG: 491618
This commit is contained in:
Vlad Zahorodnii 2024-08-19 15:16:47 +03:00
parent 315fff68e9
commit d028e3b1e9

View file

@ -772,8 +772,6 @@ void Workspace::removeUnmanaged(X11Window *window)
{ {
Q_ASSERT(m_windows.contains(window)); Q_ASSERT(m_windows.contains(window));
m_windows.removeOne(window); m_windows.removeOne(window);
removeFromStack(window);
updateStackingOrder();
Q_EMIT windowRemoved(window); Q_EMIT windowRemoved(window);
} }
#endif #endif