Mac: Don't give windows focus back when we're closing them.
Fixes bug #1840 (https://bugzilla.libsdl.org/show_bug.cgi?id=1840) --HG-- extra : histedit_source : bd88f90110eb00ed9572073f7cc39a53e22a5d1b
This commit is contained in:
parent
fcd0b2efc3
commit
f93c2e774a
1 changed files with 7 additions and 2 deletions
|
@ -299,9 +299,14 @@ SetWindowStyle(SDL_Window * window, unsigned int style)
|
|||
!!! 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue