I first observed this issue with OpenJDK 11.0.2, with which I couldn't make the TurboVNC Viewer span multiple screens in full-screen mode at all. After upgrading to OpenJDK 11.0.4, full-screen multi-screen spanning seems to always work when I run the viewer from my build directory using the bin/vncviewer script, but oddly, it seems to never work when I run the viewer from the Mac app bundle. In all cases, when full-screen multi-screen spanning doesn't work, the geometry is being set correctly in Viewport.setGeometry(), but (for reasons unexplained) the window is constrained to one screen or the other. I spent about 10 hours trying to debug this without success. I looked at whether the difference in behavior in the app bundle vs. the raw TurboVNC Viewer might be due to a particular key in the app bundle's Info.plist file, but I couldn't find one that had any effect on the problem. I tried offsetting the full-screen window within the multi-screen space, but the O/S refused to do that. It's as if it's clamping the window to one screen, despite the fact that "Displays have separate spaces" is turned off.
Needless to say, everything works fine with Java 8.
I first observed this issue with OpenJDK 11.0.2, with which I couldn't make the TurboVNC Viewer span multiple screens in full-screen mode at all. After upgrading to OpenJDK 11.0.4, full-screen multi-screen spanning seems to always work when I run the viewer from my build directory using the
bin/vncviewerscript, but oddly, it seems to never work when I run the viewer from the Mac app bundle. In all cases, when full-screen multi-screen spanning doesn't work, the geometry is being set correctly inViewport.setGeometry(), but (for reasons unexplained) the window is constrained to one screen or the other. I spent about 10 hours trying to debug this without success. I looked at whether the difference in behavior in the app bundle vs. the raw TurboVNC Viewer might be due to a particular key in the app bundle's Info.plist file, but I couldn't find one that had any effect on the problem. I tried offsetting the full-screen window within the multi-screen space, but the O/S refused to do that. It's as if it's clamping the window to one screen, despite the fact that "Displays have separate spaces" is turned off.Needless to say, everything works fine with Java 8.