Who's moving my window?

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.

I’ve been stumped for a while :slight_smile: Here’s the WindowClass in an empty project, if you want to look at it. I took most of the ideas from a Xojo example.

WindowClass.xojo_binary_project.zip (5.3 KB)

  • My monitors are side by side, with the Dock on the left edge of the leftmost one (just as you have). This is macOS Sonoma, with each screen having its own set of Spaces.
  • Never used Stage Manager, AFAIK it’s turned off.
  • Which Dock settings are you after?
  • This was an API1 project until API2 came along, I converted it to API2 soon after.

I’ll keep fiddling.