From 26e8e387e1769b41b7657dd73a24bf0f442d2b7c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 14 Mar 2014 18:06:09 -0700 Subject: [PATCH] Fixed Mac OS X window level when leaving fullscreen mode --- src/video/cocoa/SDL_cocoawindow.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m index 1b58a678b..c4dee2114 100644 --- a/src/video/cocoa/SDL_cocoawindow.m +++ b/src/video/cocoa/SDL_cocoawindow.m @@ -587,6 +587,8 @@ SetWindowStyle(SDL_Window * window, unsigned int style) inFullscreenTransition = NO; + [nswindow setLevel:kCGNormalWindowLevel]; + if (pendingWindowOperation == PENDING_OPERATION_ENTER_FULLSCREEN) { pendingWindowOperation = PENDING_OPERATION_NONE; [self setFullscreenSpace:YES];