From 0ecf47c409f1cb4c034d50fcd47e6863070ae140 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 24 Feb 2002 00:15:02 +0000 Subject: [PATCH] removed AdjustForParentClientOrigin from wxMotif and all its forks git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/x11/window.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/x11/window.cpp b/src/x11/window.cpp index 836d5c2202..ba61bd3939 100644 --- a/src/x11/window.cpp +++ b/src/x11/window.cpp @@ -794,17 +794,6 @@ wxPoint wxWindowX11::GetClientAreaOrigin() const return wxPoint(0, 0); } -// Makes an adjustment to the window position (for example, a frame that has -// a toolbar that it manages itself). -void wxWindowX11::AdjustForParentClientOrigin(int& x, int& y, int sizeFlags) -{ - if (((sizeFlags & wxSIZE_NO_ADJUSTMENTS) == 0) && GetParent()) - { - wxPoint pt(GetParent()->GetClientAreaOrigin()); - x += pt.x; y += pt.y; - } -} - void wxWindowX11::SetSizeHints(int minW, int minH, int maxW, int maxH, int incW, int incH) { m_minWidth = minW; -- 2.45.2