From 09dbef83391af4ab739d021a9568034836a90a31 Mon Sep 17 00:00:00 2001 From: randomnumgen1 Date: Fri, 2 Aug 2024 18:11:48 +0100 Subject: [PATCH] wayland fullscreen (#1147) * wayland fullscreen attempt 1 at adding fullscreen * wayland test 2 --------- Co-authored-by: jamie scott --- base/vulkanexamplebase.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/base/vulkanexamplebase.cpp b/base/vulkanexamplebase.cpp index e8842433..460d68af 100644 --- a/base/vulkanexamplebase.cpp +++ b/base/vulkanexamplebase.cpp @@ -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; }