diff --git a/SheepShaver/src/Unix/main_unix.cpp b/SheepShaver/src/Unix/main_unix.cpp index 0db0cd01..15fce115 100755 --- a/SheepShaver/src/Unix/main_unix.cpp +++ b/SheepShaver/src/Unix/main_unix.cpp @@ -697,7 +697,7 @@ static bool init_sdl() assert(sdl_flags != 0); #ifdef USE_SDL_VIDEO -#if REAL_ADDRESSING && !defined(__MACOSX__) +#if REAL_ADDRESSING && defined(GDK_WINDOWING_WAYLAND) // Needed to fix a crash when using Wayland // Forces use of XWayland instead setenv("SDL_VIDEODRIVER", "x11", true);