From 5a486641ebd9f9e389f500794d54e6dc49faf69b Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 9 Nov 2004 20:03:19 +0000 Subject: [PATCH] toplevel creation respecting wxDefaultPosition again git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/toplevel.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index a794c8077a..a459279ecc 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -948,6 +948,14 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title, int x = (int)pos.x; int y = (int)pos.y; + + wxRect display = wxGetClientDisplayRect() ; + + if ( x == wxDefaultPosition.x ) + x = display.x ; + + if ( y == wxDefaultPosition.y ) + y = display.y ; int w = WidthDefault(size.x); int h = HeightDefault(size.y); -- 2.50.0