Wait for interface announce before xdg-decoration check

This commit is contained in:
Ilya Fedin 2022-04-14 00:47:50 +04:00 committed by John Preston
parent 01f07480b0
commit d1bf069916

View file

@ -18,8 +18,11 @@ std::unique_ptr<BasicWindowHelper> CreateSpecialWindowHelper(
bool NativeWindowFrameSupported() { bool NativeWindowFrameSupported() {
const auto waylandIntegration = WaylandIntegration::Instance(); const auto waylandIntegration = WaylandIntegration::Instance();
return !waylandIntegration if (waylandIntegration) {
|| waylandIntegration->xdgDecorationSupported(); waylandIntegration->waitForInterfaceAnnounce();
return waylandIntegration->xdgDecorationSupported();
}
return true;
} }
} // namespace Platform } // namespace Platform