Skip to content

Commit

Permalink
Mac: Don't give windows focus back when we're closing them.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgenpt committed Jan 15, 2014
1 parent a0c9e64 commit bc92383
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -299,9 +299,14 @@ - (void)close
!!! FIXME: http://bugzilla.libsdl.org/show_bug.cgi?id=1825
*/
windows = [NSApp orderedWindows];
if ([windows count] > 0) {
NSWindow *win = (NSWindow *) [windows objectAtIndex:0];
for (NSWindow *win in windows)
{
if (win == window) {
continue;
}

[win makeKeyAndOrderFront:self];
break;
}
}

Expand Down

0 comments on commit bc92383

Please sign in to comment.