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