]> git.saurik.com Git - wxWidgets.git/commitdiff
adjust the window coordinates for parent client area origin when in Create() too...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 15 Apr 2007 00:28:05 +0000 (00:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 15 Apr 2007 00:28:05 +0000 (00:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/x11/window.cpp

index a2ea6261c2beb33013ba5f7ee57a1e0fc2553312..2e2df49db87ac9102ed8a3bc714b0a68b9c8d55c 100644 (file)
@@ -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);