Skip to content
Permalink
Browse files

SDL - when raising the window under OSX also force the app to activat…

…e. This fixes a fullscreen window on a separate space not coming front when raisewindow is called.
  • Loading branch information
alfred-valve committed Jul 31, 2014
1 parent 7552947 commit 87b8c8d1088e01bc60a9bdf7eaf94e4b93daaaba
Showing with 1 addition and 0 deletions.
  1. +1 −0 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];

0 comments on commit 87b8c8d

Please sign in to comment.