projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3afacb0
)
Implement fullscreen for wayland shell surface
author
Olivier Blin
<olivier.blin@softathome.com>
Mon, 3 Jul 2017 17:03:18 +0000
(19:03 +0200)
committer
Olivier Blin
<olivier.blin@softathome.com>
Wed, 5 Jul 2017 16:47:52 +0000
(18:47 +0200)
uwac/libuwac/uwac-window.c
patch
|
blob
|
history
diff --git
a/uwac/libuwac/uwac-window.c
b/uwac/libuwac/uwac-window.c
index
7574dc3
..
f212f07
100644
(file)
--- 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;
}