mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-24 02:14:11 +08:00
Implement fullscreen for wayland shell surface
This commit is contained in:
parent
3afacb0445
commit
77d8aaf97b
@ -682,6 +682,19 @@ UwacReturnCode UwacWindowSetFullscreenState(UwacWindow* window, UwacOutput* outp
|
||||
xdg_surface_unset_fullscreen(window->xdg_surface);
|
||||
}
|
||||
}
|
||||
else if (window->shell_surface)
|
||||
{
|
||||
if (isFullscreen) {
|
||||
wl_shell_surface_set_fullscreen(window->shell_surface,
|
||||
WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT,
|
||||
0,
|
||||
output ? output->output : NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
wl_shell_surface_set_toplevel(window->shell_surface);
|
||||
}
|
||||
}
|
||||
|
||||
return UWAC_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user