From 87ca6dcb43a179838784d5fede94824b2b7f3a3a Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Mon, 4 Dec 2023 16:28:31 +0100 Subject: [PATCH] xwayland: Check for the screen output name for fullscreen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When putting the (root) window fullscreen, first search for an output with the specified name, if any. Signed-off-by: Olivier Fourdan Acked-by: Michel Dänzer --- hw/xwayland/xwayland-window.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/xwayland/xwayland-window.c b/hw/xwayland/xwayland-window.c index a6a4cf8f5..aaeeace68 100644 --- a/hw/xwayland/xwayland-window.c +++ b/hw/xwayland/xwayland-window.c @@ -319,8 +319,11 @@ xwl_window_get_output(struct xwl_window *xwl_window) struct xwl_screen *xwl_screen = xwl_window->xwl_screen; struct xwl_output *xwl_output; - xwl_output = xwl_output_from_wl_output(xwl_screen, xwl_window->wl_output); + xwl_output = xwl_output_get_output_from_name(xwl_screen, xwl_screen->output_name); + if (xwl_output) + return xwl_output; + xwl_output = xwl_output_from_wl_output(xwl_screen, xwl_window->wl_output); if (xwl_output) return xwl_output;