diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 57e5d8f59d..07696993a6 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -1213,10 +1213,14 @@ void wxWindowMac::DoGetPosition(int *x, int *y) const { Rect bounds ; m_peer->GetRect( &bounds ) ; - + int x1 = bounds.left ; int y1 = bounds.top ; + // get the wx window position from the native one + x1 -= MacGetLeftBorderSize() ; + y1 -= MacGetTopBorderSize() ; + if ( !IsTopLevel() ) { wxWindow *parent = GetParent();