]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/topluniv.cpp
Tries to fix wxListBox focus problems.
[wxWidgets.git] / 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());
 }
 
 // ----------------------------------------------------------------------------