From 8128a21554788b3eda49d28bb8f5eba064dafeaf Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Fri, 11 Aug 2023 14:40:23 +0200 Subject: [PATCH] xwayland: Default geometry for undecorated rootful We specify a sensible default geometry for decorated rootful windows, but not for undecorated ones. Make the default geometry apply to rootful windows in general. Signed-off-by: Kenny Levinsen --- hw/xwayland/xwayland-screen.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/hw/xwayland/xwayland-screen.c b/hw/xwayland/xwayland-screen.c index 6b57fbe9d..c00f976a8 100644 --- a/hw/xwayland/xwayland-screen.c +++ b/hw/xwayland/xwayland-screen.c @@ -816,14 +816,13 @@ xwl_screen_init(ScreenPtr pScreen, int argc, char **argv) } } - if (use_fixed_size) { - if (xwl_screen->rootless) { - ErrorF("error, cannot set a geometry when running rootless\n"); - return FALSE; - } else { - xwl_screen->width = xwl_width; - xwl_screen->height = xwl_height; - } + if (!xwl_screen->rootless) { + use_fixed_size = 1; + xwl_screen->width = xwl_width; + xwl_screen->height = xwl_height; + } else if (use_fixed_size) { + ErrorF("error, cannot set a geometry when running rootless\n"); + return FALSE; } #ifdef XWL_HAS_GLAMOR