Open window in fullscreen mode when it was set by user
This commit is contained in:
parent
e61d3bc0ac
commit
8572c5ef3b
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user