From f2d5cf785ee274be01a6b3d835992a80571834f2 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 25 Apr 2020 15:42:13 -0700 Subject: [PATCH] Don't cancel mouse capture on focus loss in absolute mode --- app/streaming/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/streaming/input.cpp b/app/streaming/input.cpp index 25adc916..e77a7a79 100644 --- a/app/streaming/input.cpp +++ b/app/streaming/input.cpp @@ -1386,7 +1386,7 @@ void SdlInputHandler::notifyFocusLost(SDL_Window* window) // This lets user to interact with our window's title bar and with the buttons in it. // Doing this while the window is full-screen breaks the transition out of FS // (desktop and exclusive), so we must check for that before releasing mouse capture. - if (!(SDL_GetWindowFlags(window) & SDL_WINDOW_FULLSCREEN)) { + if (!(SDL_GetWindowFlags(window) & SDL_WINDOW_FULLSCREEN) && !m_AbsoluteMouseMode) { setCaptureActive(false); }