From: Olivier Blin Date: Mon, 3 Jul 2017 17:03:18 +0000 (+0200) Subject: Implement fullscreen for wayland shell surface X-Git-Tag: 2.0.0-rc0~10^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=77d8aaf97b0eacc6d38e6dab0a7dcde02e4688b4;p=platform%2Fupstream%2Ffreerdp.git Implement fullscreen for wayland shell surface --- diff --git a/uwac/libuwac/uwac-window.c b/uwac/libuwac/uwac-window.c index 7574dc3..f212f07 100644 --- a/uwac/libuwac/uwac-window.c +++ b/uwac/libuwac/uwac-window.c @@ -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; }