From 87b8c8d1088e01bc60a9bdf7eaf94e4b93daaaba Mon Sep 17 00:00:00 2001 From: Alfred Reynolds Date: Thu, 31 Jul 2014 12:46:23 -0700 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m index 5141a5b8b226e..63d6f211dde97 100644 --- a/src/video/cocoa/SDL_cocoawindow.m +++ b/src/video/cocoa/SDL_cocoawindow.m @@ -1271,6 +1271,7 @@ - (void)resetCursorRects */ [windowData->listener pauseVisibleObservation]; if (![nswindow isMiniaturized] && [nswindow isVisible]) { + [NSApp activateIgnoringOtherApps:YES]; [nswindow makeKeyAndOrderFront:nil]; } [windowData->listener resumeVisibleObservation];