From b678297c53b081d42cb19fabc65d13202ad5494e Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Thu, 2 Nov 2023 10:23:54 +0100 Subject: [PATCH] xwayland: Add scale factor to the Xwayland screen For now, the global surface scale is always 1, no functional change. Signed-off-by: Olivier Fourdan Reviewed-By: Kenny Levinsen Acked-by: Peter Hutterer Part-of: --- hw/xwayland/xwayland-screen.c | 1 + hw/xwayland/xwayland-screen.h | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/xwayland/xwayland-screen.c b/hw/xwayland/xwayland-screen.c index e69196486..11460a723 100644 --- a/hw/xwayland/xwayland-screen.c +++ b/hw/xwayland/xwayland-screen.c @@ -915,6 +915,7 @@ xwl_screen_init(ScreenPtr pScreen, int argc, char **argv) xorg_list_init(&xwl_screen->drm_leases); xorg_list_init(&xwl_screen->pending_wl_surface_destroy); xwl_screen->depth = 24; + xwl_screen->global_surface_scale = 1; if (!monitorResolution) monitorResolution = DEFAULT_DPI; diff --git a/hw/xwayland/xwayland-screen.h b/hw/xwayland/xwayland-screen.h index bf42b5a69..c8c093fbe 100644 --- a/hw/xwayland/xwayland-screen.h +++ b/hw/xwayland/xwayland-screen.h @@ -48,6 +48,7 @@ struct xwl_screen { double width; double height; int depth; + int global_surface_scale; int output_name_serial; ScreenPtr screen; int wm_client_id;