From 9b77335345a7351c1b1f8078c49fb5cc83808b37 Mon Sep 17 00:00:00 2001 From: BearOso Date: Tue, 9 Jan 2024 10:04:46 -0600 Subject: [PATCH] Wayland: Unset source coordinates to just use whole buffer. --- common/video/wayland_surface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/video/wayland_surface.cpp b/common/video/wayland_surface.cpp index 626fc5c1..855d3a74 100644 --- a/common/video/wayland_surface.cpp +++ b/common/video/wayland_surface.cpp @@ -167,8 +167,8 @@ void WaylandSurface::resize(Metrics m) viewport = wp_viewporter_get_viewport(viewporter, child); wp_viewport_set_source(viewport, - wl_fixed_from_int(0), wl_fixed_from_int(0), - wl_fixed_from_int(w), wl_fixed_from_int(h)); + wl_fixed_from_int(-1), wl_fixed_from_int(-1), + wl_fixed_from_int(-1), wl_fixed_from_int(-1)); wp_viewport_set_destination(viewport, m.width, m.height); wl_surface_commit(child);