From 8e790c47457109d88a425069b99a7e5d82d3edad Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 12 Jan 2021 19:57:01 -0600 Subject: [PATCH] Use real full-screen on macOS when capturing keys --- app/streaming/session.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index 5e971365..261e4423 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -531,6 +531,15 @@ bool Session::initialize() break; } +#ifdef Q_OS_DARWIN + // macOS behaves as if we're capturing system keys when + // we enter "real" full-screen mode, so use standard + // full-screen as our full-screen flag when capturing keys. + if (m_Preferences->captureSysKeys) { + m_FullScreenFlag = SDL_WINDOW_FULLSCREEN; + } +#endif + #if !SDL_VERSION_ATLEAST(2, 0, 11) // HACK: Using a full-screen window breaks mouse capture on the Pi's LXDE // GUI environment. Force the session to use windowed mode (which won't