src/video/cocoa/SDL_cocoawindow.m
changeset 7593 20298a0d8631
parent 7566 b14d00c30095
child 7594 6abcf951af68
--- a/src/video/cocoa/SDL_cocoawindow.m	Wed Aug 07 14:00:41 2013 -0700
+++ b/src/video/cocoa/SDL_cocoawindow.m	Wed Aug 07 16:29:15 2013 -0700
@@ -414,6 +414,11 @@
                 y = window->h - 1;
             }
 
+#if !SDL_MAC_NO_SANDBOX
+            /* When SDL_MAC_NO_SANDBOX is set, this is handled by
+             * SDL_cocoamousetap.m.
+             */
+
             cgpoint.x = window->x + x;
             cgpoint.y = window->y + y;
 
@@ -424,6 +429,7 @@
             CGSetLocalEventsSuppressionInterval(0.0);
             CGDisplayMoveCursorToPoint(kCGDirectMainDisplay, cgpoint);
             CGSetLocalEventsSuppressionInterval(0.25);
+#endif
         }
     }
     SDL_SendMouseMotion(window, 0, 0, x, y);