From 63c0a2dfa22011b95a7b70ff98417ff9da47f261 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Thu, 13 Jul 2023 17:06:05 +0200 Subject: [PATCH] xwayland: Make xwl_randr_add_modes_fixed() public API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is preparation work for making Xwayland rootful resizeable. Signed-off-by: Olivier Fourdan Reviewed-by: Michel Dänzer --- hw/xwayland/xwayland-output.c | 2 +- hw/xwayland/xwayland-output.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/xwayland/xwayland-output.c b/hw/xwayland/xwayland-output.c index 738c3320f..fe7a9232e 100644 --- a/hw/xwayland/xwayland-output.c +++ b/hw/xwayland/xwayland-output.c @@ -1080,7 +1080,7 @@ mode_sort(const void *left, const void *right) return (*mode_b)->mode.width - (*mode_a)->mode.width; } -static Bool +Bool xwl_randr_add_modes_fixed(struct xwl_output *xwl_output, int current_width, int current_height) { diff --git a/hw/xwayland/xwayland-output.h b/hw/xwayland/xwayland-output.h index a95288e4f..bcdf25bec 100644 --- a/hw/xwayland/xwayland-output.h +++ b/hw/xwayland/xwayland-output.h @@ -77,6 +77,10 @@ Bool xwl_screen_init_output(struct xwl_screen *xwl_screen); Bool xwl_screen_init_randr_fixed(struct xwl_screen *xwl_screen); +Bool +xwl_randr_add_modes_fixed(struct xwl_output *xwl_output, + int current_width, int current_height); + void xwl_output_set_mode_fixed(struct xwl_output *xwl_output, RRModePtr mode);