From 633b5c691bb4397b6e75bb22c4bfe68855823276 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 21 Feb 2014 19:05:22 +0000 Subject: [PATCH] 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/trunk@75966 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 87587f4db1..792fd1e268 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -1817,6 +1817,9 @@ void wxWidgetCocoaImpl::Init() wxWidgetCocoaImpl::~wxWidgetCocoaImpl() { + if ( GetWXPeer() && GetWXPeer()->IsFrozen() ) + [[m_osxView window] enableFlushWindow]; + RemoveAssociations( this ); if ( !IsRootControl() )