From: Rémi Bernon <rbernon(a)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); + } } } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/6386