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.
remotes/origin/work/moving_cursor
Vlad Zahorodnii 4 years ago
parent f4c704a904
commit 09ba8729fc
  1. 4
      src/workspace.cpp

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

Loading…
Cancel
Save