From cfb9d5a5015c249b7c70a992beb8e1d49bb6fb89 Mon Sep 17 00:00:00 2001 From: robxnano <89391914+robxnano@users.noreply.github.com> Date: Mon, 26 Sep 2022 13:45:01 +0100 Subject: [PATCH] Force SDL to use X11 videodriver in SheepShaver (fixes failure to launch when using Wayland) --- SheepShaver/src/Unix/main_unix.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SheepShaver/src/Unix/main_unix.cpp b/SheepShaver/src/Unix/main_unix.cpp index b8e728ac..0cc92f2f 100755 --- a/SheepShaver/src/Unix/main_unix.cpp +++ b/SheepShaver/src/Unix/main_unix.cpp @@ -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);