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 <ofourdan@redhat.com>
This commit is contained in:
Olivier Fourdan 2024-11-26 10:34:59 +01:00
parent 1427294685
commit b723eb5085

View file

@ -896,6 +896,10 @@ xwl_screen_validate_options(int argc, char **argv)
else if (strcmp(argv[i], "-rootless") == 0) {
rootless = TRUE;
}
else if (strcmp(argv[i], "+iglx") == 0) {
ErrorF("Invalid argument, '+iglx' (indirect GLX context) is not supported\n");
return FALSE;
}
}
if (rootless && use_fixed_size) {