From: Stefan Csomor Date: Tue, 9 Nov 2004 08:13:00 +0000 (+0000) Subject: move offscreen before in order to avoid transitions for mdiparent frame as it suppose... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/507ad4266a4e91296654725a28c24958b91e9805 move offscreen before in order to avoid transitions for mdiparent frame as it supposed not to be visible on mac anyway git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/mdi.cpp b/src/mac/carbon/mdi.cpp index b009b1ebe6..a5672eebec 100644 --- a/src/mac/carbon/mdi.cpp +++ b/src/mac/carbon/mdi.cpp @@ -219,17 +219,18 @@ void wxMDIParentFrame::ActivatePrevious() bool wxMDIParentFrame::Show( bool show ) { - if ( !wxFrame::Show(show) ) - return false; - // don't really show the MDI frame unless it has any children other than // MDI children as it is pretty useless in this case + if ( show ) { // TODO: check for other children Move(-10000, -10000); } + if ( !wxFrame::Show(show) ) + return false; + return true; }