SDL - when raising the window under OSX also force the app to activate. This fixes a fullscreen window on a separate space not coming front when raisewindow is called.
authorAlfred Reynolds <alfred@valvesoftware.com>
Thu, 31 Jul 2014 12:46:23 -0700
changeset 904189e97caa2387
parent 9037 e9d67ac0c6f8
child 9044 5716114f158e
child 9508 39c47dcd5d50
SDL - when raising the window under OSX also force the app to activate. This fixes a fullscreen window on a separate space not coming front when raisewindow is called.
src/video/cocoa/SDL_cocoawindow.m
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Wed Jul 30 17:45:52 2014 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Thu Jul 31 12:46:23 2014 -0700
     1.3 @@ -1271,6 +1271,7 @@
     1.4       */
     1.5      [windowData->listener pauseVisibleObservation];
     1.6      if (![nswindow isMiniaturized] && [nswindow isVisible]) {
     1.7 +        [NSApp activateIgnoringOtherApps:YES];
     1.8          [nswindow makeKeyAndOrderFront:nil];
     1.9      }
    1.10      [windowData->listener resumeVisibleObservation];