X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/809020fc9791018a335b825d6a3ed870c0612925..8bd410eb8082d9e009ece7cc279faa5f73ea1f5e:/src/osx/window_osx.cpp diff --git a/src/osx/window_osx.cpp b/src/osx/window_osx.cpp index 0eeb0df526..20af778038 100644 --- a/src/osx/window_osx.cpp +++ b/src/osx/window_osx.cpp @@ -1061,10 +1061,16 @@ bool wxWindowMac::Show(bool show) if ( m_peer ) m_peer->SetVisibility( show ) ; - wxShowEvent eventShow(GetId(), show); - eventShow.SetEventObject(this); +#ifdef __WXOSX_IPHONE__ + // only when there's no native event support + if ( !IsTopLevel() ) +#endif + { + wxShowEvent eventShow(GetId(), show); + eventShow.SetEventObject(this); - HandleWindowEvent(eventShow); + HandleWindowEvent(eventShow); + } return true; }