From f321d0bc0caf4d78ccc5426e926fc25c46297439 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 19 Nov 2012 13:06:01 +0000 Subject: [PATCH] implementing delayed freezing, fixes #12865 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72988 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 3cf01f4de0..91d8162363 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -2125,6 +2125,9 @@ void wxWidgetCocoaImpl::Embed( wxWidgetImpl *parent ) NSView* container = parent->GetWXWidget() ; wxASSERT_MSG( container != NULL , wxT("No valid mac container control") ) ; [container addSubview:m_osxView]; + + if( m_wxPeer->IsFrozen() ) + [[m_osxView window] disableFlushWindow]; } void wxWidgetCocoaImpl::SetBackgroundColour( const wxColour &col )