From: Václav Slavík Date: Wed, 21 Nov 2001 00:03:56 +0000 (+0000) Subject: client area origin handling fixes for univ/wxTLW X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/badc44fe581ab0e9fef871874cd58bc03c204fa8 client area origin handling fixes for univ/wxTLW git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/univ/topluniv.cpp b/src/univ/topluniv.cpp index 27a2633365..f9bfbeaa86 100644 --- a/src/univ/topluniv.cpp +++ b/src/univ/topluniv.cpp @@ -265,7 +265,7 @@ long wxTopLevelWindow::HitTest(const wxPoint& pt) const wxTopLevelWindowNative::DoGetClientSize(&w, &h); wxRect rect(wxTopLevelWindowNative::GetClientAreaOrigin(), wxSize(w, h)); - return m_renderer->HitTestFrame(rect, pt, GetDecorationsStyle()); + return m_renderer->HitTestFrame(rect, pt+GetClientAreaOrigin(), GetDecorationsStyle()); } // ----------------------------------------------------------------------------