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.

This commit is contained in:
Alfred Reynolds 2014-07-31 12:46:23 -07:00
parent 7552947654
commit 87b8c8d108

View file

@ -1271,6 +1271,7 @@ Cocoa_RaiseWindow(_THIS, SDL_Window * window)
*/
[windowData->listener pauseVisibleObservation];
if (![nswindow isMiniaturized] && [nswindow isVisible]) {
[NSApp activateIgnoringOtherApps:YES];
[nswindow makeKeyAndOrderFront:nil];
}
[windowData->listener resumeVisibleObservation];