From: Rémi Bernon rbernon@codeweavers.com
--- dlls/winewayland.drv/wayland_surface.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/winewayland.drv/wayland_surface.c b/dlls/winewayland.drv/wayland_surface.c index a2699d66e51..3b4ced893b6 100644 --- a/dlls/winewayland.drv/wayland_surface.c +++ b/dlls/winewayland.drv/wayland_surface.c @@ -477,9 +477,15 @@ static void wayland_surface_reconfigure_size(struct wayland_surface *surface, if (surface->wp_viewport) { if (width != 0 && height != 0) + { + wp_viewport_set_source(surface->wp_viewport, 0, 0, width << 8, height << 8); wp_viewport_set_destination(surface->wp_viewport, width, height); + } else + { + wp_viewport_set_source(surface->wp_viewport, -1, -1, -1, -1); wp_viewport_set_destination(surface->wp_viewport, -1, -1); + } } }