From 219b6c6b50552ad58ba916efe880630730ce11e2 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 2 Mar 2023 20:02:32 +0200 Subject: [PATCH] Reevaluate stacking order when an override-redirect window is added The stacking order needs to be re-evaluated so Window.stackingOrder is updated. --- src/workspace.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/workspace.cpp b/src/workspace.cpp index 0f785c2bfa..52692797f0 100644 --- a/src/workspace.cpp +++ b/src/workspace.cpp @@ -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); }