[PATCH weston 06/10] compositor-wayland: allow to unset fullscreen
Pekka Paalanen
ppaalanen at gmail.com
Tue Oct 24 10:16:03 UTC 2017
From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
To be more symmetric with wayland_output_set_fullscreen(), implement the
xdg-shell path in wayland_output_set_windowed(). This should make it
possible to use the fullscreen key binding to toggle between a floating
window and fullscreen also under xdg-shell.
Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
libweston/compositor-wayland.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libweston/compositor-wayland.c b/libweston/compositor-wayland.c
index 9486deae..4266bb64 100644
--- a/libweston/compositor-wayland.c
+++ b/libweston/compositor-wayland.c
@@ -873,8 +873,11 @@ wayland_output_set_windowed(struct wayland_output *output)
wayland_output_resize_surface(output);
- if (output->parent.shell_surface)
+ if (output->parent.xdg_toplevel) {
+ zxdg_toplevel_v6_unset_fullscreen(output->parent.xdg_toplevel);
+ } else if (output->parent.shell_surface) {
wl_shell_surface_set_toplevel(output->parent.shell_surface);
+ }
return 0;
}
--
2.13.6
More information about the wayland-devel
mailing list