diff src/video/cocoa/SDL_cocoamodes.m @ 3280:00cace2d9080

Merged a cleaned up version of Jiang's code changes from Google Summer of Code 2009
author Sam Lantinga <slouken@libsdl.org>
date Sat, 19 Sep 2009 13:29:40 +0000
parents cde30895105d
children 4b594623401b
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoamodes.m	Sat Sep 19 12:48:52 2009 +0000
+++ b/src/video/cocoa/SDL_cocoamodes.m	Sat Sep 19 13:29:40 2009 +0000
@@ -250,6 +250,8 @@
         CGReleaseDisplayFadeReservation(fade_token);
     }
 
+    [[NSApp mainWindow] makeKeyAndOrderFront: nil];
+
 #if MAC_OS_X_VERSION_MAX_ALLOWED < 1050
     /* 
         There is a bug in Cocoa where NSScreen doesn't synchronize