Well I’m stumped - clearly there’s something different between my toy project and your big one. I’m suspicious of the code in your custom DesktopWindow class, but if you are sure that’s not the fault…
More ideas:
- how are your monitors arranged? I have two 5k monitors horizontally next to each other, dock on the left side of the 1st monitor.
- do you have any OS features that manage window locations? (such as Stage Manager, or a third party app?)
- What are your Dock settings?
- is this an API2 project, an API1 project that was converted to API2…?
If I were you, I would take my sample project, and start editing it to be more and more like your project, and see if you can trigger the problem.