ModernDocking icon indicating copy to clipboard operation
ModernDocking copied to clipboard

macOS: White rectangle shows over the window frame while dragging

Open seclerp opened this issue 3 months ago • 4 comments

Just tried to run my app that uses ModernDocking on MacOS X (Macbook 16 Pro with aarch64 chip) and got the white static opaque rectangle over the window that spans even more over the borders of it.

The same behaviour can be easily reproduced with the demo example.

Steps to reproduce

  1. Clone ModernDocking repo on MacOS X
  2. Run EditorExample from demo-single-app module. (I've used IntelliJ IDEA for that with Microsoft OpenJDK 21 configured as Project SDK. Changing the SDK to other provider didn't help)
  3. Start dragging

Expected behaviour

No solid visual obscurity while dragging

Actual behaviour

Image

seclerp avatar Sep 10 '25 10:09 seclerp

Hey @andrewauclair, altering the conditions that you've added for Windows in #344 works nicely for fixing this issue too:

Image

The only visible problem I can see now is a "shadow-like" blit of old dockable pins at the bottom of the screenshot. I'm not sure about the root causes of that problem.

seclerp avatar Sep 10 '25 13:09 seclerp

Modern Docking isn't officially supported on MacOS (I don't have access to a system). Good to know that those changes at least partially fix it.

andrewauclair avatar Sep 10 '25 17:09 andrewauclair

Very sad to hear that :(

May I ask you to add a notice about supported platforms somewhere on the documentation and/or in the README?

Also, would you happen to accept PRs related to the macOS support? I'm interested in fixing some stuff to be able to continue using this library for my project, if you don't mind.

seclerp avatar Sep 10 '25 17:09 seclerp

May I ask you to add a notice about supported platforms somewhere on the documentation and/or in the README?

I can do that. I think I meant to at some point and never did.

Also, would you happen to accept PRs related to the macOS support? I'm interested in fixing some stuff to be able to continue using this library for my project, if you don't mind.

I would definitely accept PRs.

andrewauclair avatar Sep 10 '25 18:09 andrewauclair