[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.
remotes/origin/Plasma/5.4
Martin Gräßlin 11 years ago
parent aff93b1216
commit 783afd17b7
  1. 10
      wayland_server.cpp

@ -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();

Loading…
Cancel
Save