From ce31cc518a48d978c84448424d0d2a6bba4a5a5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 26 Jun 2023 21:09:30 +0200 Subject: [PATCH] wayland: surface_scale(): reset buffer scale when using fractional scaling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since the first frame uses legacy scaling, the surface may have a buffer scale > 1, which isn’t allowed. --- wayland.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wayland.c b/wayland.c index cff432bb..c9693200 100644 --- a/wayland.c +++ b/wayland.c @@ -1901,6 +1901,7 @@ wayl_surface_scale_explicit_width_height( LOG_DBG("scaling by a factor of %.2f using fractional scaling " "(width=%d, height=%d) ", scale, width, height); + wl_surface_set_buffer_scale(surf->surf, 1); wp_viewport_set_destination( surf->viewport, round((float)width / scale),