Skip to content

Commit

Permalink
SDL - when raising the window under OSX also force the app to activat…
Browse files Browse the repository at this point in the history
…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 87b8c8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -1271,6 +1271,7 @@ - (void)resetCursorRects
*/
[windowData->listener pauseVisibleObservation];
if (![nswindow isMiniaturized] && [nswindow isVisible]) {
[NSApp activateIgnoringOtherApps:YES];
[nswindow makeKeyAndOrderFront:nil];
}
[windowData->listener resumeVisibleObservation];
Expand Down

0 comments on commit 87b8c8d

Please sign in to comment.