mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-28 07:29:57 +00:00
Force SDL to use X11 videodriver in SheepShaver
(fixes failure to launch when using Wayland)
This commit is contained in:
parent
05adbff2f5
commit
cfb9d5a501
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user