[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.
This commit is contained in:
parent
aff93b1216
commit
783afd17b7
1 changed files with 9 additions and 1 deletions
|
@ -121,7 +121,15 @@ void WaylandServer::init(const QByteArray &socketName)
|
|||
} else {
|
||||
m_clients << client;
|
||||
}
|
||||
if (client->readyForPainting()) {
|
||||
emit shellClientAdded(client);
|
||||
} else {
|
||||
connect(client, &ShellClient::windowShown, this,
|
||||
[this, client] {
|
||||
emit shellClientAdded(client);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
);
|
||||
m_display->createShm();
|
||||
|
|
Loading…
Reference in a new issue