From 34446a99528a9c2ee1cc5e83118e5d0c58795b31 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Tue, 25 Jul 2023 16:25:29 +0200 Subject: [PATCH] xwayland: Make fullscreen used a fixed size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Similar to commit 94deed272 - " xwayland: Use sensible defaults for rootful size", mark fullscreen mode as fixed so that the actual monitor layout is not reflected in the single fullscreen rootful window. Without this, if "-fullscreen" is used without "-geometry", the XRandR configuration is taken from the compositor via wl_output/xdg-output and cannot be changed by the X11 clients. Signed-off-by: Olivier Fourdan Reviewed-by: Michel Dänzer --- hw/xwayland/xwayland-screen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/xwayland/xwayland-screen.c b/hw/xwayland/xwayland-screen.c index 37ee7da0f..6b57fbe9d 100644 --- a/hw/xwayland/xwayland-screen.c +++ b/hw/xwayland/xwayland-screen.c @@ -799,6 +799,7 @@ xwl_screen_init(ScreenPtr pScreen, int argc, char **argv) use_fixed_size = 1; } else if (strcmp(argv[i], "-fullscreen") == 0) { + use_fixed_size = 1; xwl_screen->fullscreen = 1; } else if (strcmp(argv[i], "-host-grab") == 0) {