src/video/cocoa/SDL_cocoamouse.m
changeset 3685 64ce267332c6
parent 3528 59ff7a2beb57
child 4465 3e69e077cb95
--- a/src/video/cocoa/SDL_cocoamouse.m	Thu Jan 21 05:49:41 2010 +0000
+++ b/src/video/cocoa/SDL_cocoamouse.m	Thu Jan 21 06:21:52 2010 +0000
@@ -76,7 +76,7 @@
             if (point.x < 0 || point.x >= candidate->w ||
                 point.y < 0 || point.y >= candidate->h) {
                 /* The mouse is out of this fullscreen display */
-                if (mouse->focus == candidate->id) {
+                if (mouse->focus == candidate) {
                     SDL_SetMouseFocus(data->mouse, 0);
                 }
             } else {
@@ -91,8 +91,8 @@
     }
 
     /* Set the focus appropriately */
-    if (mouse->focus != window->id) {
-        SDL_SetMouseFocus(data->mouse, window->id);
+    if (mouse->focus != window) {
+        SDL_SetMouseFocus(data->mouse, window);
     }
 
     switch ([event type]) {