Skip to content
Permalink
Browse files
Mac: Don't give windows focus back when we're closing them.
  • Loading branch information
jorgenpt committed Jan 15, 2014
1 parent a0c9e64 commit bc92383eea2153f3e5602a0117a0b86d7e775a4c
Showing 1 changed file with 7 additions and 2 deletions.
@@ -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;
}
}

0 comments on commit bc92383

Please sign in to comment.