src/video/cocoa/SDL_cocoawindow.m
changeset 9897 b9b4c1bbb778
parent 9860 858a9b80e18a
child 9903 2bbb11de1e60
equal deleted inserted replaced
9896:b0b12a3c817c 9897:b9b4c1bbb778
  1600         DLog("Returning cursor to (%g, %g)", cgpoint.x, cgpoint.y);
  1600         DLog("Returning cursor to (%g, %g)", cgpoint.x, cgpoint.y);
  1601         CGDisplayMoveCursorToPoint(kCGDirectMainDisplay, cgpoint);
  1601         CGDisplayMoveCursorToPoint(kCGDirectMainDisplay, cgpoint);
  1602     }
  1602     }
  1603 
  1603 
  1604     if ( data && (window->flags & SDL_WINDOW_FULLSCREEN) ) {
  1604     if ( data && (window->flags & SDL_WINDOW_FULLSCREEN) ) {
  1605         if (SDL_ShouldAllowTopmost() && (window->flags & SDL_WINDOW_INPUT_FOCUS)) {
  1605         if (SDL_ShouldAllowTopmost() && (window->flags & SDL_WINDOW_INPUT_FOCUS)
       
  1606             && ![data->listener isInFullscreenSpace]) {
  1606             /* OpenGL is rendering to the window, so make it visible! */
  1607             /* OpenGL is rendering to the window, so make it visible! */
       
  1608             /* Doing this in 10.11 while in a Space breaks things (bug #3152) */
  1607             [data->nswindow setLevel:CGShieldingWindowLevel()];
  1609             [data->nswindow setLevel:CGShieldingWindowLevel()];
  1608         } else {
  1610         } else {
  1609             [data->nswindow setLevel:kCGNormalWindowLevel];
  1611             [data->nswindow setLevel:kCGNormalWindowLevel];
  1610         }
  1612         }
  1611     }
  1613     }