wayland: use scale fullscreen method.
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Fri, 17 Aug 2012 08:12:22 +0000 (11:12 +0300)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 21 Aug 2012 09:41:31 +0000 (10:41 +0100)
This makes the compositor scale the surface to fit and preserves
aspect ratio.

https://bugzilla.gnome.org/show_bug.cgi?id=681453

ext/wayland/gstwaylandsink.c

index 45b0efc..a7053a1 100644 (file)
@@ -433,7 +433,7 @@ create_window (GstWaylandSink * sink, struct display *display, int width,
 
   wl_shell_surface_set_toplevel (window->shell_surface);
   wl_shell_surface_set_fullscreen (window->shell_surface,
-      WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT, 0, NULL);
+      WL_SHELL_SURFACE_FULLSCREEN_METHOD_SCALE, 0, NULL);
 
   sink->window = window;