mirror of
https://github.com/SFML/SFML.git
synced 2024-11-29 06:41:05 +08:00
Automatically activate the next window when one is closed
This commit is contained in:
parent
a6dba586ee
commit
c83027ec9c
@ -107,6 +107,12 @@ WindowImplCocoa::~WindowImplCocoa()
|
|||||||
|
|
||||||
[m_delegate release];
|
[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();
|
releasePool();
|
||||||
|
|
||||||
drainPool(); // Make sure everything was freed
|
drainPool(); // Make sure everything was freed
|
||||||
|
Loading…
Reference in New Issue
Block a user