On bind set stacking order only to newly bound client

sendStackingOrderChanged() iterates though all clients. Only the new
client needs to be send information at this point.
This commit is contained in:
David Edmundson 2020-07-06 16:47:05 +01:00
parent ec0c109f4d
commit 8792a8d6b8

View file

@ -232,7 +232,7 @@ void PlasmaWindowManagementInterface::Private::bind(wl_client *client, uint32_t
for (auto it = windows.constBegin(); it != windows.constEnd(); ++it) {
org_kde_plasma_window_management_send_window(shell, (*it)->d->windowId);
}
sendStackingOrderChanged();
sendStackingOrderChanged(shell);
}
void PlasmaWindowManagementInterface::Private::unbind(wl_resource *resource)