mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-21 14:52:04 +00:00
[client] wayland: fix fullscreen option launch bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user