src/video/cocoa/SDL_cocoawindow.m
changeset 10158 941261e0db9f
parent 10140 6dd5f49e4a77
child 10159 d41acf6379f6
--- a/src/video/cocoa/SDL_cocoawindow.m	Mon Apr 25 22:17:38 2016 +0200
+++ b/src/video/cocoa/SDL_cocoawindow.m	Sun May 01 19:51:10 2016 -0300
@@ -974,13 +974,8 @@
             cgpoint.x = window->x + x;
             cgpoint.y = window->y + y;
 
-            /* 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.
-             */
-            CGSetLocalEventsSuppressionInterval(0.0);
             CGDisplayMoveCursorToPoint(kCGDirectMainDisplay, cgpoint);
-            CGSetLocalEventsSuppressionInterval(0.25);
+            CGAssociateMouseAndMouseCursorPosition(YES);
 
             Cocoa_HandleMouseWarp(cgpoint.x, cgpoint.y);
 #endif