From 5f0db48443f86ece85b5e269ea4f8aef655b49ea Mon Sep 17 00:00:00 2001 From: Mariusz Bialonczyk Date: Sat, 30 Dec 2023 12:43:27 +0100 Subject: [PATCH] [uwac] output: assign actual_scale to display --- uwac/libuwac/uwac-output.c | 2 +- uwac/libuwac/uwac-priv.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/uwac/libuwac/uwac-output.c b/uwac/libuwac/uwac-output.c index 14308c662..ee378443f 100644 --- a/uwac/libuwac/uwac-output.c +++ b/uwac/libuwac/uwac-output.c @@ -88,7 +88,7 @@ static void output_handle_scale(void* data, struct wl_output* wl_output, int32_t UwacOutput* output = data; assert(output); - output->scale = scale; + output->display->actual_scale = output->scale = scale; } static void output_handle_name(void* data, struct wl_output* wl_output, const char* name) diff --git a/uwac/libuwac/uwac-priv.h b/uwac/libuwac/uwac-priv.h index ca16f88ee..71b73292d 100644 --- a/uwac/libuwac/uwac-priv.h +++ b/uwac/libuwac/uwac-priv.h @@ -128,6 +128,7 @@ struct uwac_display UwacTask dispatch_fd_task; uint32_t serial; uint32_t pointer_focus_serial; + int actual_scale; struct wl_list windows;