Automatically activate the next window when one is closed

This commit is contained in:
Marco Antognini 2013-09-21 21:31:59 +02:00
parent a6dba586ee
commit c83027ec9c

View File

@ -107,6 +107,12 @@ WindowImplCocoa::~WindowImplCocoa()
[m_delegate release];
// Put the next window in front, if any.
NSArray* windows = [NSApp orderedWindows];
if ([windows count] > 0) {
[[windows objectAtIndex:0] makeKeyAndOrderFront:nil];
}
releasePool();
drainPool(); // Make sure everything was freed