Skip to content

Commit

Permalink
don't warp mouse on exiting relative mode
Browse files Browse the repository at this point in the history
  • Loading branch information
expikr committed Jan 13, 2025
1 parent f79083d commit 1f8f659
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/events/SDL_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1249,12 +1249,6 @@ bool SDL_SetRelativeMouseMode(bool enabled)

if (focusWindow) {
SDL_UpdateWindowGrab(focusWindow);

// Put the cursor back to where the application expects it
if (!enabled) {
SDL_PerformWarpMouseInWindow(focusWindow, mouse->x, mouse->y, true);
}

SDL_UpdateMouseCapture(false);
}

Expand Down

0 comments on commit 1f8f659

Please sign in to comment.