Kaynağa Gözat

Fixed Mac OS X window level when leaving fullscreen mode

Sam Lantinga 11 yıl önce
ebeveyn
işleme
26e8e387e1
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      src/video/cocoa/SDL_cocoawindow.m

+ 2 - 0
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];