From 09ba8729fc126eb9c386fc4d2ffeddb502c6446b Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 17 May 2022 12:51:12 +0300 Subject: [PATCH] Partially revert 89b35c3238f49ab4cbc6d1d94bb29abaa1dc9e51 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. --- src/workspace.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/workspace.cpp b/src/workspace.cpp index 6857ac5872..9c9fe4ca02 100644 --- a/src/workspace.cpp +++ b/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);