mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 03:15:21 +08:00
Restore default YES value for FLWindow releasedWhenClosed property.
This commit is contained in:
@@ -588,7 +588,6 @@ void Fl_Cocoa_Screen_Driver::breakMacEventLoop()
|
|||||||
[[self contentView] removeTrackingArea:ta];
|
[[self contentView] removeTrackingArea:ta];
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
[self release];
|
|
||||||
// when a fullscreen window is closed, windowDidResize may be sent after the close message was sent
|
// when a fullscreen window is closed, windowDidResize may be sent after the close message was sent
|
||||||
// and before the FLWindow receives the final dealloc message
|
// and before the FLWindow receives the final dealloc message
|
||||||
w = NULL;
|
w = NULL;
|
||||||
@@ -3100,7 +3099,6 @@ Fl_X* Fl_Cocoa_Window_Driver::makeWindow()
|
|||||||
contentRect:crect
|
contentRect:crect
|
||||||
styleMask:winstyle];
|
styleMask:winstyle];
|
||||||
[cw setFrameOrigin:crect.origin];
|
[cw setFrameOrigin:crect.origin];
|
||||||
[cw setReleasedWhenClosed:NO];
|
|
||||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_12
|
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_12
|
||||||
if (fl_mac_os_version >= 101200) {
|
if (fl_mac_os_version >= 101200) {
|
||||||
if (!w->parent() && (winstyle & NSTitledWindowMask) && (winstyle & NSResizableWindowMask)
|
if (!w->parent() && (winstyle & NSTitledWindowMask) && (winstyle & NSResizableWindowMask)
|
||||||
|
|||||||
Reference in New Issue
Block a user