From e9c1f883daf82a83b134979f7d608e6e0e741dac Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 30 Jul 2018 00:03:17 -0700 Subject: [PATCH] Use full-screen desktop mode for Mac to allow Spaces to work --- app/streaming/session.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index 574de274..00b27783 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -13,10 +13,10 @@ #include "video/sl.h" #endif -#ifdef Q_OS_WIN32 -// Using full-screen desktop allows us to avoid needing to enable V-sync +#if defined(Q_OS_WIN32) || defined(Q_OS_DARWIN) +// Using full-screen desktop allows us to avoid needing to enable V-sync on Windows // and it also avoids some strange flickering issues on my Win7 test machine -// with Intel HD 5500 graphics. +// with Intel HD 5500 graphics. It also allows Spaces to work on macOS. #define SDL_OS_FULLSCREEN_FLAG SDL_WINDOW_FULLSCREEN_DESKTOP #else #define SDL_OS_FULLSCREEN_FLAG SDL_WINDOW_FULLSCREEN