From 7bc5e15b95bd4209e6eb6c1395fb40bb7d9ad0f7 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 22 Feb 2014 09:08:19 +0000 Subject: [PATCH] backport of r75966, make sure a frozen control calls a native 'thaw' on the tlw during destruction, otherwise tlws might end up unresponsive, see #16011 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/window.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osx/cocoa/window.mm b/src/osx/cocoa/window.mm index 1dc97c5b5e..451766af11 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -1834,6 +1834,9 @@ void wxWidgetCocoaImpl::Init() wxWidgetCocoaImpl::~wxWidgetCocoaImpl() { + if ( GetWXPeer() && GetWXPeer()->IsFrozen() ) + [[m_osxView window] enableFlushWindow]; + RemoveAssociations( this ); if ( !IsRootControl() )