Close NSWindows properly
Don't just release the window, call the close method. This is usually the same, but in some situations, the difference (close sends NSWindowWillCloseNotification, which wx doesn't use) is significant. In particular, if the window is shown as fullscreen, OS X won't dispose of its space correctly when the window is released, but not closed first. See https://github.com/vslavik/poedit/issues/119 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -613,7 +613,8 @@ wxNonOwnedWindowCocoaImpl::~wxNonOwnedWindowCocoaImpl()
|
||||
if ([m_macWindow parentWindow] != 0)
|
||||
[[m_macWindow parentWindow] removeChildWindow: m_macWindow];
|
||||
|
||||
[m_macWindow release];
|
||||
[m_macWindow setReleasedWhenClosed:YES];
|
||||
[m_macWindow close];
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user