Force SDL to use X11 videodriver in SheepShaver

(fixes failure to launch when using Wayland)
This commit is contained in:
robxnano 2022-09-26 13:45:01 +01:00
parent 05adbff2f5
commit cfb9d5a501

View File

@ -697,6 +697,12 @@ static bool init_sdl()
assert(sdl_flags != 0);
#ifdef USE_SDL_VIDEO
#if REAL_ADDRESSING
// Needed to fix a crash when using Wayland
// Forces use of XWayland instead
setenv("SDL_VIDEODRIVER", "x11", true);
#endif
// Don't let SDL block the screensaver
setenv("SDL_VIDEO_ALLOW_SCREENSAVER", "1", true);