From af53647cf7db9e6ce0eee0251cac95a11f9c08d1 Mon Sep 17 00:00:00 2001 From: Usarin Heininga Date: Tue, 16 Mar 2021 12:13:03 +0100 Subject: [PATCH] Set stackingOrderUuids as well. --- src/wayland_server.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland_server.cpp b/src/wayland_server.cpp index b6bbf82a68..1fa012bf1d 100644 --- a/src/wayland_server.cpp +++ b/src/wayland_server.cpp @@ -547,13 +547,16 @@ void WaylandServer::initWorkspace() connect(workspace(), &Workspace::workspaceInitialized, this, [this] { auto f = [this] () { QVector ids; + QVector uuids; for (Toplevel *toplevel : workspace()->stackingOrder()) { auto *client = qobject_cast(toplevel); if (client && client->windowManagementInterface()) { ids << client->windowManagementInterface()->internalId(); + uuids << client->windowManagementInterface()->uuid(); } } m_windowManagement->setStackingOrder(ids); + m_windowManagement->setStackingOrderUuids(uuids); }; f(); connect(workspace(), &Workspace::stackingOrderChanged, this, f);