davidedmundson added a comment.
The other option is: connection->roundTrip(); at the end of init, which effectively is a (slightly safer) nested event loop until we've send a ping to kwin and back, which indicates that kwin must have also finished sending the registry REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D19029 To: davidedmundson, #plasma Cc: plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart