Partially revert 89b35c3238

As it turns out, it's needed to ensure that the Workspace emits the
stackingOrder changed signal when a new window is added. It's also
implicitly needed to make sure that Window::stackingOrder() is updated.
This commit is contained in:
Vlad Zahorodnii 2022-05-17 12:51:12 +03:00
parent f4c704a904
commit 09ba8729fc

View file

@ -796,7 +796,7 @@ void Workspace::addWaylandWindow(Window *window)
m_allClients.append(window);
addToStack(window);
updateStackingOrder();
updateStackingOrder(true);
updateClientArea();
if (window->wantsInput() && !window->isMinimized()) {
activateWindow(window);
@ -1912,7 +1912,7 @@ void Workspace::addInternalWindow(InternalWindow *window)
Placement::self()->place(window, area);
}
updateStackingOrder();
updateStackingOrder(true);
updateClientArea();
Q_EMIT internalWindowAdded(window);