src/video/cocoa/SDL_cocoawindow.m
changeset 7113 7b4b596b3cfb
parent 7098 f4b2c6fb0258
child 7158 ff52fba70795
--- a/src/video/cocoa/SDL_cocoawindow.m	Thu Apr 25 18:40:31 2013 -0700
+++ b/src/video/cocoa/SDL_cocoawindow.m	Thu Apr 25 18:40:22 2013 -0700
@@ -393,13 +393,13 @@
             cgpoint.x = window->x + x;
             cgpoint.y = window->y + y;
 
-            /* We have to disassociate the curosr & the mouse before issuing
-             * this cursor warp, otherwise it gets limited to one update per
-             * 250ms, and looks very choppy.
+            /* According to the docs, this was deprecated in 10.6, but it's still
+             * around. The substitute requires a CGEventSource, but I'm not entirely
+             * sure how we'd procure the right one for this event.
              */
-            CGAssociateMouseAndMouseCursorPosition(NO);
+            CGSetLocalEventsSuppressionInterval(0.0);
             CGDisplayMoveCursorToPoint(kCGDirectMainDisplay, cgpoint);
-            CGAssociateMouseAndMouseCursorPosition(YES);
+            CGSetLocalEventsSuppressionInterval(0.25);
         }
     }
     SDL_SendMouseMotion(window, 0, 0, x, y);