From 55efbeb23cdf941efafa8df867ad9c611fbbfc40 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 15 Apr 2007 00:32:27 +0000 Subject: [PATCH] adjust the window coordinates for parent client area origin when in Create() too and not only in DoSetSize() [backport from HEAD] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/x11/window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/x11/window.cpp b/src/x11/window.cpp index f10becfa7f..c509d3e75d 100644 --- a/src/x11/window.cpp +++ b/src/x11/window.cpp @@ -160,6 +160,8 @@ bool wxWindowX11::Create(wxWindow *parent, wxWindowID id, if (pos2.y == wxDefaultCoord) pos2.y = 0; + AdjustForParentClientOrigin(pos2.x, pos2.y); + #if wxUSE_TWO_WINDOWS bool need_two_windows = ((( wxSUNKEN_BORDER | wxRAISED_BORDER | wxSIMPLE_BORDER | wxHSCROLL | wxVSCROLL ) & m_windowStyle) != 0);