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 9041 89e97caa2387
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
--- a/src/video/cocoa/SDL_cocoawindow.m	Wed Jul 30 17:45:52 2014 -0700
+++ b/src/video/cocoa/SDL_cocoawindow.m	Thu Jul 31 12:46:23 2014 -0700
@@ -1271,6 +1271,7 @@
      */
     [windowData->listener pauseVisibleObservation];
     if (![nswindow isMiniaturized] && [nswindow isVisible]) {
+        [NSApp activateIgnoringOtherApps:YES];
         [nswindow makeKeyAndOrderFront:nil];
     }
     [windowData->listener resumeVisibleObservation];