[client] wayland: fix fullscreen option launch bug

This commit is contained in:
Geoffrey McRae
2026-07-18 03:31:22 +10:00
parent acb5c06794
commit 47ade6395d
4 changed files with 33 additions and 7 deletions

View File

@@ -152,6 +152,18 @@ bool waylandWindowInit(const char * title, const char * appId, bool fullscreen,
return false;
wl_surface_commit(wlWm.surface);
// The initial configure supplies the compositor-selected size for states
// such as fullscreen. It must be received before the first buffer is made.
while (!wlWm.desktop->configured())
{
if (wl_display_roundtrip(wlWm.display) < 0)
{
DEBUG_ERROR("Failed waiting for the initial Wayland configure");
return false;
}
}
return true;
}