Need help with wx.aui.AuiManager problem

Hi there

Recently, I reported a problem with wx.aui.AuiManager. https://github.com/wxWidgets/Phoenix/issues/2187

This problem seems to be related to the change of wxWidget 3.1.6 → 3.1.7.
I also reported this to wxWidget issue tracker, but strangely, it was not reproduced!

If you are using Windows 10, and have the latest snapshot “4.1.2a1.dev5434+7d45ee6a (whl)”, I really appreciate if you could test my code attached below and check if the problem is reproduced, please?
You can download the whl from here: Index of /Phoenix/snapshot-builds
The description is as follows:

Operating system: Windows 10
wxPython version & source: 4.1.2a1.dev5434+7d45ee6a (whl)
Python version & source: 3.10.4

Description of the problem:
Each time you drag one floating pane window, the other floating panes drift.
In the demo video, every time you drag the pane [p1], the pane [p2] drifts. Once you touch the pane [p2], it will no longer move.

Since 4.1.2a1.dev5426+502d8354 is no problem, this bug seems to be related to the change of wxWidget 3.1.6 → 3.1.7

Code Example (click to expand)
import sys
import wx
from wx import aui


print("Python {}".format(sys.version))
print("wxPython {}".format(wx.version()))

class Frame(wx.Frame):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        self._mgr = aui.AuiManager()
        self._mgr.SetManagedWindow(self)

        self.p0 = wx.Panel(self)
        self.p1 = wx.Panel(self, size=(100,100))
        self.p2 = wx.Panel(self, size=(100,100))

        self._mgr.AddPane(self.p0, aui.AuiPaneInfo().CenterPane())
        self._mgr.AddPane(self.p1, aui.AuiPaneInfo().Float().Caption("p1"))
        self._mgr.AddPane(self.p2, aui.AuiPaneInfo().Float().Caption("p2"))
        self._mgr.Update()

if __name__ == "__main__":
    app = wx.App()
    frm = Frame(None)
    frm.Show()
    app.MainLoop()

I can reproduce this with Python 3.10.5 and wxPython 4.1.2a1.dev5434+7d45ee6a.
With the older 4.1.2a1.dev5308+2258f215 I could not reproduce it.

Hi Anders,
Thank you very much for taking the time to check this issue!
I’m relieved that this issue doesn’t seem to depend on the something “specific” setup or configuration of my Windows PC. I have no idea yet, but guess something wrong with MSW RTL…

I also reported this problem to wxWidgets issue tracker.