floating windows can't be dragged over a certain height.
Brought to you by:
adecaro
I have a multiple monitor setup (see ascii art below)
-----------
| 4 |
------------- ----------- ------------
| 2 | | 1 | | 3 |
------------- ---------- -----------
Monitor 1 is my main monitor and I can drag floating windows to monitors 2,1,3.However I can't seem to drag a floating window up to monitor 4.
Even if it I had just 2 monitors (1 and 4) it never lets me drag the floating window past a certain height.
Maybe the -Y positioning isn't being considered somewhere in the framework?
Mad props on MyDoggy.
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.