Mac: Fix restoring of Cmd-H-hidden fullscreen desktop windows.
This should fix http://bugzilla.libsdl.org/show_bug.cgi?id=1996
--- a/src/video/cocoa/SDL_cocoawindow.m Mon Aug 12 08:45:37 2013 -0700
+++ b/src/video/cocoa/SDL_cocoawindow.m Mon Aug 12 11:09:13 2013 -0700
@@ -1047,9 +1047,11 @@
[nswindow setLevel:kCGNormalWindowLevel];
}
- [data->listener pauseVisibleObservation];
- [nswindow makeKeyAndOrderFront:nil];
- [data->listener resumeVisibleObservation];
+ if ([nswindow isVisible] || fullscreen) {
+ [data->listener pauseVisibleObservation];
+ [nswindow makeKeyAndOrderFront:nil];
+ [data->listener resumeVisibleObservation];
+ }
ScheduleContextUpdates(data);