]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/toplevel.cpp
use GtkIMContext variable, not GtkIMMulticontext, we don't use functions that take...
[wxWidgets.git] / src / mac / carbon / toplevel.cpp
index 7a1976ac09e071a99161d20e28b91e5b9b6971c3..afeecbafc44a172c44e984fc7274618c583b15dd 100644 (file)
@@ -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