]> git.saurik.com Git - wxWidgets.git/commitdiff
client area origin handling fixes for univ/wxTLW
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 21 Nov 2001 00:03:56 +0000 (00:03 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 21 Nov 2001 00:03:56 +0000 (00:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/topluniv.cpp

index 27a2633365e09d7dd35c63a5240c98b7a4a8e2f7..f9bfbeaa8683ede62ee26f40caa42f9b21b13e16 100644 (file)
@@ -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());
 }
 
 // ----------------------------------------------------------------------------