wayland fullscreen (#1147)

* wayland fullscreen

attempt 1 at adding fullscreen

* wayland

test 2

---------

Co-authored-by: jamie scott <jamiescott1995@outlook.com>
This commit is contained in:
randomnumgen1 2024-08-02 18:11:48 +01:00 committed by GitHub
parent 8cb518ba54
commit 09dbef8339
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2472,7 +2472,13 @@ struct xdg_surface *VulkanExampleBase::setupWindow()
std::string windowTitle = getWindowTitle();
xdg_toplevel_set_title(xdg_toplevel, windowTitle.c_str());
if (settings.fullscreen)
{
xdg_toplevel_set_fullscreen(xdg_toplevel, NULL);
}
wl_surface_commit(surface);
wl_display_flush(display);
return xdg_surface;
}