OSX: makeKeyAndOrderFront would show window from orderedWindows list on every loop, so use makeKeyWindow only to avoid flicker when closing app
This commit is contained in:
@@ -629,7 +629,7 @@ GHOST_WindowCocoa::~GHOST_WindowCocoa()
|
||||
NSArray *windowsList = [NSApp orderedWindows];
|
||||
for (int a = 0; a < [windowsList count]; a++) {
|
||||
if (m_window != (CocoaWindow *)[windowsList objectAtIndex:a]) {
|
||||
[[windowsList objectAtIndex:a] makeKeyAndOrderFront:nil];
|
||||
[[windowsList objectAtIndex:a] makeKeyWindow];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user