From a626a1142d99c0c388d5873afb70539cf2a17201 Mon Sep 17 00:00:00 2001 From: kamplom <159391123+kamplom@users.noreply.github.com> Date: Thu, 21 Mar 2024 00:24:35 +0100 Subject: [PATCH] [client] wayland: Let viewporter use full wl_buffer --- AUTHORS | 1 + client/displayservers/Wayland/gl.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 76f72fc71..50a318f5d 100644 --- a/AUTHORS +++ b/AUTHORS @@ -67,3 +67,4 @@ Daniel Cordero (0xdc) esi (esibun) MakiseKurisu (MakiseKurisu) Zenithal (ZenithalHourlyRate) +Kamplom <6284968128@protonmail.ch> (kamplom) diff --git a/client/displayservers/Wayland/gl.c b/client/displayservers/Wayland/gl.c index 343ced82d..9cabbb035 100644 --- a/client/displayservers/Wayland/gl.c +++ b/client/displayservers/Wayland/gl.c @@ -102,7 +102,11 @@ void waylandEGLSwapBuffers(EGLDisplay display, EGLSurface surface, const struct wl_surface_set_buffer_scale(wlWm.surface, 1); if (!wlWm.viewport) wlWm.viewport = wp_viewporter_get_viewport(wlWm.viewporter, wlWm.surface); - wp_viewport_set_source(wlWm.viewport, 0, 0, width * wlWm.scale, height * wlWm.scale); + wp_viewport_set_source( + wlWm.viewport, + wl_fixed_from_int(-1), wl_fixed_from_int(-1), + wl_fixed_from_int(-1), wl_fixed_from_int(-1) + ); wp_viewport_set_destination(wlWm.viewport, width, height); } else