X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/86a9144fd0a042f0ecb6ebd0c748b5a33341159a..da2101204027855793c4264388b95a208967ae15:/src/mac/carbon/toplevel.cpp?ds=sidebyside diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index 7a1976ac09..afeecbafc4 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -990,6 +990,11 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title, // the content view, so we have to retrieve it explicitely HIViewFindByID( HIViewGetRoot( (WindowRef) m_macWindow ) , kHIViewWindowContentID , *m_peer ) ; + if ( !m_peer->Ok() ) + { + // compatibility mode fallback + GetRootControl( (WindowRef) m_macWindow , *m_peer ) ; + } #else ::CreateRootControl( (WindowRef)m_macWindow , *m_peer ) ; #endif