src/video/cocoa/SDL_cocoawindow.m
changeset 7593 20298a0d8631
parent 7566 b14d00c30095
child 7594 6abcf951af68
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Wed Aug 07 14:00:41 2013 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Wed Aug 07 16:29:15 2013 -0700
     1.3 @@ -414,6 +414,11 @@
     1.4                  y = window->h - 1;
     1.5              }
     1.6  
     1.7 +#if !SDL_MAC_NO_SANDBOX
     1.8 +            /* When SDL_MAC_NO_SANDBOX is set, this is handled by
     1.9 +             * SDL_cocoamousetap.m.
    1.10 +             */
    1.11 +
    1.12              cgpoint.x = window->x + x;
    1.13              cgpoint.y = window->y + y;
    1.14  
    1.15 @@ -424,6 +429,7 @@
    1.16              CGSetLocalEventsSuppressionInterval(0.0);
    1.17              CGDisplayMoveCursorToPoint(kCGDirectMainDisplay, cgpoint);
    1.18              CGSetLocalEventsSuppressionInterval(0.25);
    1.19 +#endif
    1.20          }
    1.21      }
    1.22      SDL_SendMouseMotion(window, 0, 0, x, y);