From 6e4c0fc416eab642d8ad61d87fb32141a8c42bca Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 29 Jun 2018 11:57:01 +0300 Subject: [PATCH] - disabled annoying macOS spaces in SDL backend --- src/posix/sdl/hardware.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/posix/sdl/hardware.cpp b/src/posix/sdl/hardware.cpp index 3c000cb8e..eda9081e3 100644 --- a/src/posix/sdl/hardware.cpp +++ b/src/posix/sdl/hardware.cpp @@ -69,6 +69,10 @@ void I_ShutdownGraphics () void I_InitGraphics () { +#ifdef __APPLE__ + SDL_SetHint(SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES, "0"); +#endif // __APPLE__ + if (SDL_InitSubSystem (SDL_INIT_VIDEO) < 0) { I_FatalError ("Could not initialize SDL video:\n%s\n", SDL_GetError());