src/video/cocoa/SDL_cocoamouse.m
changeset 7113 7b4b596b3cfb
parent 7106 31f8acac196b
child 7114 02b2fe147478
--- a/src/video/cocoa/SDL_cocoamouse.m	Thu Apr 25 18:40:31 2013 -0700
+++ b/src/video/cocoa/SDL_cocoamouse.m	Thu Apr 25 18:40:22 2013 -0700
@@ -192,7 +192,14 @@
 
     point.x = (float)window->x + x;
     point.y = (float)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);
     CGWarpMouseCursorPosition(point);
+    CGSetLocalEventsSuppressionInterval(0.25);
 
     /* CGWarpMouseCursorPosition doesn't generate a window event, unlike our
      * other implementations' APIs.