Commit 783afd17 authored by Martin Flöser's avatar Martin Flöser

[wayland] Delay WaylandServer::shellClientAdded till the Surface is ready for painting

This simplifies the interaction: we know that the Surface is useable if
it got announced to the Workspace.
parent aff93b12
......@@ -121,7 +121,15 @@ void WaylandServer::init(const QByteArray &socketName)
} else {
m_clients << client;
}
emit shellClientAdded(client);
if (client->readyForPainting()) {
emit shellClientAdded(client);
} else {
connect(client, &ShellClient::windowShown, this,
[this, client] {
emit shellClientAdded(client);
}
);
}
}
);
m_display->createShm();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment