From efad34be627bf5a3bfec33de425e6c6d53aa0ff7 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 31 Mar 2022 23:54:58 -0500 Subject: [PATCH] Set SDL_MOUSE_AUTO_CAPTURE=0 since we manage mouse capture ourselves --- app/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/main.cpp b/app/main.cpp index 981ea87f..c749a587 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -457,6 +457,10 @@ int main(int argc, char *argv[]) SDL_SetHint("SDL_AUDIO_DEVICE_APP_NAME", "Moonlight"); SDL_SetHint("SDL_APP_NAME", "Moonlight"); + // We handle capturing the mouse ourselves when it leaves the window, so we don't need + // SDL doing it for us behind our backs. + SDL_SetHint("SDL_MOUSE_AUTO_CAPTURE", "0"); + #ifdef QT_DEBUG // Allow thread naming using exceptions on debug builds. SDL doesn't use SEH // when throwing the exceptions, so we don't enable it for release builds out