Fixed Mac OS X window level when leaving fullscreen mode

This commit is contained in:
Sam Lantinga 2014-03-14 18:06:09 -07:00
parent 2216ab93dc
commit 26e8e387e1
1 changed files with 2 additions and 0 deletions

View File

@ -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];