diff --git a/src/aui/floatpane.cpp b/src/aui/floatpane.cpp index 628626de9d..fac030ca96 100644 --- a/src/aui/floatpane.cpp +++ b/src/aui/floatpane.cpp @@ -207,7 +207,7 @@ void wxAuiFloatingFrame::OnMoveEvent(wxMoveEvent& event) if (m_ownerMgr) { m_ownerMgr->GetPane(m_paneWindow). - floating_pos = event.GetPosition(); + floating_pos = GetRect().GetPosition(); } if (!m_solidDrag)