From 8572c5ef3b96993af1766584e55309a856daa491 Mon Sep 17 00:00:00 2001 From: Deve Date: Thu, 29 Oct 2015 00:16:00 +0100 Subject: [PATCH] Open window in fullscreen mode when it was set by user --- lib/irrlicht/source/Irrlicht/cirrdevicewayland.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/irrlicht/source/Irrlicht/cirrdevicewayland.cpp b/lib/irrlicht/source/Irrlicht/cirrdevicewayland.cpp index 71b8df075..cf131d3b1 100644 --- a/lib/irrlicht/source/Irrlicht/cirrdevicewayland.cpp +++ b/lib/irrlicht/source/Irrlicht/cirrdevicewayland.cpp @@ -615,7 +615,19 @@ bool CIrrDeviceWayland::createWindow() { surface = wl_compositor_create_surface(compositor); shell_surface = wl_shell_get_shell_surface(shell, surface); - wl_shell_surface_set_toplevel(shell_surface); + + if (CreationParams.Fullscreen) + { + wl_shell_surface_set_fullscreen(shell_surface, + WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT, + 0, output); + } + else + { + wl_shell_surface_set_toplevel(shell_surface); + } + + wl_display_flush(display); initEGL();