diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 2712368c6f..5d44626d47 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -4988,6 +4988,11 @@ void wxDataViewMainWindow::OnMouse( wxMouseEvent &event ) if (event.RightUp()) { wxDataViewEvent le(wxEVT_DATAVIEW_ITEM_CONTEXT_MENU, m_owner, col, item); + int xx = event.GetX(); + int yy = event.GetY(); + ClientToScreen(&xx, &yy); + m_owner->ScreenToClient(&xx, &yy); + le.SetPosition(xx, yy); m_owner->ProcessWindowEvent(le); return; }