mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 07:03:36 -04:00
cocoadisplay: Fix Command+Q in green-button-style fullscreen mode
It seems macOS has an extra NSWindow without a delegate in this mode
This commit is contained in:
parent
7f916eeb74
commit
e5a8eb5b1d
@ -39,7 +39,8 @@
|
||||
// Ask all the windows whether they are OK to be closed.
|
||||
bool should_close = true;
|
||||
for (NSWindow *window in [app windows]) {
|
||||
if (![[window delegate] windowShouldClose:window]) {
|
||||
id<NSWindowDelegate> delegate = [window delegate];
|
||||
if (delegate != nil && ![delegate windowShouldClose:window]) {
|
||||
should_close = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user