src/video/cocoa/SDL_cocoawindow.m
changeset 8929 7b459b49fa92
parent 8738 354dabd2cb58
child 8931 44d8a2f4b431
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Sat May 24 18:23:39 2014 -0400
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Sat May 24 18:23:56 2014 -0400
     1.3 @@ -745,8 +745,8 @@
     1.4      x = (int)point.x;
     1.5      y = (int)(window->h - point.y);
     1.6  
     1.7 -    if (x < 0 || x >= window->w || y < 0 || y >= window->h) {
     1.8 -        if (window->flags & SDL_WINDOW_INPUT_GRABBED) {
     1.9 +    if (window->flags & SDL_WINDOW_INPUT_GRABBED) {
    1.10 +        if (x < 0 || x >= window->w || y < 0 || y >= window->h) {
    1.11              if (x < 0) {
    1.12                  x = 0;
    1.13              } else if (x >= window->w) {