From 234e255639106ab71d0e7ad434fe9edfac14f012 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 13 Jun 2013 00:15:59 +0000 Subject: [PATCH] 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 --- tests/test.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test.cpp b/tests/test.cpp index cdb57c535a..9f304346b4 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -497,6 +497,14 @@ bool TestApp::OnInit() m_eventloop = new wxEventLoop; 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 return true; -- 2.50.0