src/video/quartz/SDL_QuartzEvents.m
changeset 631 52864d66d168
parent 624 fb78cadbfeb8
child 664 abfdc08eb289
--- a/src/video/quartz/SDL_QuartzEvents.m	Thu May 29 04:44:13 2003 +0000
+++ b/src/video/quartz/SDL_QuartzEvents.m	Thu May 29 04:52:36 2003 +0000
@@ -583,6 +583,16 @@
                         
                         QZ_PrivateWarpCursor (this, p.x, p.y);
                     }
+                    else
+                    if ( !isInGameWin && (SDL_GetAppState() & SDL_APPMOUSEFOCUS) ) {
+                    
+                        SDL_PrivateAppActive (0, SDL_APPMOUSEFOCUS);
+                    }
+                    else
+                    if ( isInGameWin && !(SDL_GetAppState() & SDL_APPMOUSEFOCUS) ) {
+                    
+                        SDL_PrivateAppActive (1, SDL_APPMOUSEFOCUS);
+                    }
                     break;
                 case NSScrollWheel:
                     if ( isInGameWin ) {