This commit is contained in:
kanjitalk755 2024-03-29 21:11:46 +09:00
parent e12789a57e
commit 979523b5ca

View File

@ -697,7 +697,7 @@ static bool init_sdl()
assert(sdl_flags != 0); assert(sdl_flags != 0);
#ifdef USE_SDL_VIDEO #ifdef USE_SDL_VIDEO
#if REAL_ADDRESSING && !defined(__MACOSX__) #if REAL_ADDRESSING && defined(GDK_WINDOWING_WAYLAND)
// Needed to fix a crash when using Wayland // Needed to fix a crash when using Wayland
// Forces use of XWayland instead // Forces use of XWayland instead
setenv("SDL_VIDEODRIVER", "x11", true); setenv("SDL_VIDEODRIVER", "x11", true);