Only capture the mouse by default for full screen streaming

This commit is contained in:
Cameron Gutman 2018-08-11 14:19:42 -07:00
parent e1ca6e644e
commit 917f6e5ee9

View File

@ -742,7 +742,9 @@ void Session::exec()
// Capture the mouse by default on release builds only.
// This prevents the mouse from becoming trapped inside
// Moonlight when it's halted at a debug break.
SDL_SetRelativeMouseMode(SDL_TRUE);
if (m_Preferences.fullScreen) {
SDL_SetRelativeMouseMode(SDL_TRUE);
}
#endif
// Stop text input. SDL enables it by default