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