Fix capturing mouse motion outside the window on sdl2-compat

This commit is contained in:
Cameron Gutman
2026-07-27 00:10:06 -05:00
parent 7794a42843
commit 7f7f2c26d0
4 changed files with 33 additions and 19 deletions
-4
View File
@@ -718,10 +718,6 @@ int main(int argc, char *argv[])
SDL_SetHint(SDL_HINT_AUDIO_DEVICE_APP_NAME, "Moonlight");
SDL_SetHint(SDL_HINT_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_HINT_MOUSE_AUTO_CAPTURE, "0");
// SDL will try to lock the mouse cursor on Wayland if it's not visible in order to
// support applications that assume they can warp the cursor (which isn't possible
// on Wayland). We don't want this behavior because it interferes with seamless mouse