From c22ee2e580318f47603a31806dfdcc1b7e78b964 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Tue, 26 Nov 2024 10:34:59 +0100 Subject: [PATCH] xwayland: Refuse to start with indirect GLX enabled Xwayland does not support indirect GLX contexts and enabling them will crash the xserver. Refuse to start if indirect GLX contexts are enabled on the command line. Signed-off-by: Olivier Fourdan --- hw/xwayland/xwayland-screen.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/xwayland/xwayland-screen.c b/hw/xwayland/xwayland-screen.c index 764176df5..8a5c62c07 100644 --- a/hw/xwayland/xwayland-screen.c +++ b/hw/xwayland/xwayland-screen.c @@ -973,6 +973,10 @@ xwl_screen_init(ScreenPtr pScreen, int argc, char **argv) else if (strcmp(argv[i], "-hidpi") == 0) { xwl_screen->hidpi = 1; } + else if (strcmp(argv[i], "+iglx") == 0) { + ErrorF("Xwayland does not support indirect GLX contexts\n"); + return FALSE; + } } if (!xwl_screen->rootless) {