src/video/cocoa/SDL_cocoawindow.m
changeset 6662 698c2e533a7e
parent 6514 e94c2eaaa1ab
child 6666 018f8019ce36
--- a/src/video/cocoa/SDL_cocoawindow.m	Wed Nov 07 11:13:28 2012 -0800
+++ b/src/video/cocoa/SDL_cocoawindow.m	Wed Nov 07 15:55:43 2012 -0800
@@ -992,11 +992,10 @@
 }
 
 void
-Cocoa_SetWindowGrab(_THIS, SDL_Window * window)
+Cocoa_SetWindowGrab(_THIS, SDL_Window * window, SDL_bool grabbed)
 {
     /* Move the cursor to the nearest point in the window */
-    if ((window->flags & SDL_WINDOW_INPUT_GRABBED) &&
-        (window->flags & SDL_WINDOW_INPUT_FOCUS)) {
+    if (grabbed) {
         int x, y;
         CGPoint cgpoint;