From 917f6e5ee9e421a0ad9f3f1059832a086ebdcde9 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 11 Aug 2018 14:19:42 -0700 Subject: [PATCH] Only capture the mouse by default for full screen streaming --- app/streaming/session.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index dda37d84..8397d7a4 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -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