Peter Blasko - 2011-09-10

Hi Angelo,

I am about to start using your docking framework, but I'm also targeting multi-monitor environments and there seem to be a couple of issues yet.

Related to this bug, I've commented lines 89 to 94 in FloatingMoveMouseInputHandler, and all seems to work fine. Can you recall why did you put that limitation? I think even on single desktop if we grab a window, from the lowest point of the title bar and drag it up, we can get it to the point where only the part below the mouse pointer is visible (potentially hiding the title bar).

But if this would cause other problems we could at least check if there's a screen device above.
And this brings us to another bug I've noticed, when a tool is floating free on non-primary desktop, after hiding and showing again it will get limited to the bounds of the main device. If you would re-enable the commented lines in SwingUtil.getVirtualScreenBounds(), you could use it for fixing this bug (limiting the location after a drag) and would automatically fix the hide / show of free floating windows on secondary devices.