wait for the frame window to be really done on OSX before starting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -497,6 +497,14 @@ bool TestApp::OnInit()
|
|||||||
|
|
||||||
m_eventloop = new wxEventLoop;
|
m_eventloop = new wxEventLoop;
|
||||||
wxEventLoop::SetActive(m_eventloop);
|
wxEventLoop::SetActive(m_eventloop);
|
||||||
|
|
||||||
|
#ifdef __WXOSX__
|
||||||
|
// we need to wait until the window is activated and fully ready
|
||||||
|
// otherwise no events can be posted
|
||||||
|
m_eventloop->DispatchTimeout(1000);
|
||||||
|
m_eventloop->Yield();
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // wxUSE_GUI
|
#endif // wxUSE_GUI
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user