Commit 6a7b63802c21882cbd1b7aab39b99f9f048f19b3

shinyquagsire23 2021-12-28T12:07:56

Fix macOS cursor jumping to corner on first titlebar click

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m
index f09088c..3ae4150 100644
--- a/src/video/cocoa/SDL_cocoawindow.m
+++ b/src/video/cocoa/SDL_cocoawindow.m
@@ -465,6 +465,7 @@ Cocoa_UpdateClipCursor(SDL_Window * window)
     pendingWindowOperation = PENDING_OPERATION_NONE;
     isMoving = NO;
     isDragAreaRunning = NO;
+    pendingWindowWarpX = pendingWindowWarpY = INT_MAX;
 
     center = [NSNotificationCenter defaultCenter];