From ec23938277c01835e9547e7453285dedaee5627b Mon Sep 17 00:00:00 2001 From: valid-ptr Date: Tue, 19 Jul 2022 17:12:10 +0300 Subject: [PATCH] Fix regression in AUI floating pane positioning when dragging Fix position updating broken since the recent changes of e777a82bfd (Fix AUI floating position mismatch, 2022-05-25). Closes #22533. (cherry picked from commit 0e57ed18518d0417759346541dd3c60e1f3e5e8e) --- docs/changes.txt | 1 + src/aui/floatpane.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changes.txt b/docs/changes.txt index e94d34ca3c..63a03e12c8 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -239,6 +239,7 @@ All (GUI): - Fix grid window scrollbars when freezing part of the grid (#22602). - Avoid warnings with wxStaticText flags in C++20 (David Connet, #22656). +- Fix AUI floating pane position when dragging (Konstantin S. Matveyev, #22533). wxGTK: 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)