Set stackingOrderUuids as well.
This commit is contained in:
parent
37445d9c29
commit
af53647cf7
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue