The WaylandPrivate::virtualDesktopManagement object is loaded
asyncronously.
It's null until we finish fetching the registry.
A code path could call the desktopNames in that time.
hein |
Plasma |
The WaylandPrivate::virtualDesktopManagement object is loaded
asyncronously.
It's null until we finish fetching the registry.
A code path could call the desktopNames in that time.
Had a crash
Couldn't reproduce reliably
No Linters Available |
No Unit Test Coverage |
Buildable 8319 | |
Build 8337: arc lint + arc unit |
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
It would need to be guarded if it was used.
However, from what I can tell it's not an issue there.
All API calls are to objects inside QList<KWayland::Client::PlasmaWindow*>
and if that list is empty it does nothing.