Wait for interface announce before xdg-decoration check
This commit is contained in:
parent
01f07480b0
commit
d1bf069916
1 changed files with 5 additions and 2 deletions
|
|
@ -18,8 +18,11 @@ std::unique_ptr<BasicWindowHelper> CreateSpecialWindowHelper(
|
|||
|
||||
bool NativeWindowFrameSupported() {
|
||||
const auto waylandIntegration = WaylandIntegration::Instance();
|
||||
return !waylandIntegration
|
||||
|| waylandIntegration->xdgDecorationSupported();
|
||||
if (waylandIntegration) {
|
||||
waylandIntegration->waitForInterfaceAnnounce();
|
||||
return waylandIntegration->xdgDecorationSupported();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace Platform
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue