Set stackingOrderUuids as well.

This commit is contained in:
Usarin Heininga 2021-03-16 12:13:03 +01:00
parent 37445d9c29
commit af53647cf7

View file

@ -547,13 +547,16 @@ void WaylandServer::initWorkspace()
connect(workspace(), &Workspace::workspaceInitialized, this, [this] {
auto f = [this] () {
QVector<quint32> ids;
QVector<QString> uuids;
for (Toplevel *toplevel : workspace()->stackingOrder()) {
auto *client = qobject_cast<AbstractClient *>(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);