diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2023-11-02 10:23:54 +0100 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2024-03-20 09:05:36 +0100 |
commit | b678297c53b081d42cb19fabc65d13202ad5494e (patch) | |
tree | bd9994cc869eaf31cc1a0706e986c993e78a60db /hw/xwayland | |
parent | 2bdf594ceaaa9e6788e9090de0f3713184ed2d59 (diff) |
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 <ofourdan@redhat.com>
Reviewed-By: Kenny Levinsen <kl@kl.wtf>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1197>
Diffstat (limited to 'hw/xwayland')
-rw-r--r-- | hw/xwayland/xwayland-screen.c | 1 | ||||
-rw-r--r-- | hw/xwayland/xwayland-screen.h | 1 |
2 files changed, 2 insertions, 0 deletions
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; |