Fixed Mac OS X window level when leaving fullscreen mode
authorSam Lantinga <slouken@libsdl.org>
Fri, 14 Mar 2014 18:06:09 -0700
changeset 8618 06ee748d59b2
parent 8617 723345a17c2e
child 8619 a4538a64b9bb
Fixed Mac OS X window level when leaving fullscreen mode
src/video/cocoa/SDL_cocoawindow.m
--- a/src/video/cocoa/SDL_cocoawindow.m	Fri Mar 14 01:36:05 2014 -0400
+++ b/src/video/cocoa/SDL_cocoawindow.m	Fri Mar 14 18:06:09 2014 -0700
@@ -587,6 +587,8 @@
 
     inFullscreenTransition = NO;
 
+    [nswindow setLevel:kCGNormalWindowLevel];
+
     if (pendingWindowOperation == PENDING_OPERATION_ENTER_FULLSCREEN) {
         pendingWindowOperation = PENDING_OPERATION_NONE;
         [self setFullscreenSpace:YES];