mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Mac: Don't give windows focus back when we're closing them.
Fixes bug #1840 (https://bugzilla.libsdl.org/show_bug.cgi?id=1840)
This commit is contained in:
parent
a0c9e649f5
commit
bc92383eea
@ -299,9 +299,14 @@ SetWindowStyle(SDL_Window * window, unsigned int style)
|
|||||||
!!! FIXME: http://bugzilla.libsdl.org/show_bug.cgi?id=1825
|
!!! FIXME: http://bugzilla.libsdl.org/show_bug.cgi?id=1825
|
||||||
*/
|
*/
|
||||||
windows = [NSApp orderedWindows];
|
windows = [NSApp orderedWindows];
|
||||||
if ([windows count] > 0) {
|
for (NSWindow *win in windows)
|
||||||
NSWindow *win = (NSWindow *) [windows objectAtIndex:0];
|
{
|
||||||
|
if (win == window) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
[win makeKeyAndOrderFront:self];
|
[win makeKeyAndOrderFront:self];
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user