Use real full-screen on macOS when capturing keys
This commit is contained in:
parent
c331b180cb
commit
8e790c4745
1 changed files with 9 additions and 0 deletions
|
|
@ -531,6 +531,15 @@ bool Session::initialize()
|
||||||
break;
|
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)
|
#if !SDL_VERSION_ATLEAST(2, 0, 11)
|
||||||
// HACK: Using a full-screen window breaks mouse capture on the Pi's LXDE
|
// 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
|
// GUI environment. Force the session to use windowed mode (which won't
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue