Login  Register

Re: glwindow on secondary monitor

Posted by Sven Gothel on Dec 23, 2011; 10:20pm
URL: https://forum.jogamp.org/glwindow-on-secondary-monitor-tp3593579p3609690.html

On Wednesday, December 21, 2011 04:24:45 PM Sven Gothel wrote:
> Yup. Guess we need both:
>   - Allow negative coords to allow 'spanning' to another 'Screen'

This already works for now.


Currently I add the Screen's virtual origin as well,
allowing proper fullscreen positioning and helping w/ orientation
for user applications.

Note: The Screen's size is the virtual rotated ScreenSize.

I will check this code in later today.

>   - If not using the 'default' Screen in Window, figure out the proper coordinates

In big-desktop mode there is only one Screen, but multiple monitors
attached to it.

For proper multi-monitor support in the big-screen mode,
eg. MS Windows and X11-Xinerama (which is the default today),
we need a better ScreenMode abstraction.

This would impact the current ScreenMode API,
ie.:
 A - ScreenMode (1) - (n) MonitorMode
 B - Move ScreenMode.rotation -> MonitorMode.rotation
 C - Instead of unique ScreenMode's we would only need unique MonitorMode's
 D - Writing/Modifying would now be for the MonitorMode's .. hmm

One ScreenMode may have multiple MonitorModes (one for each attached monitor)
where the MonitorMode also contains the rotation.

I guess we have to think about this change a bit more
- or simply drop proper semantics of ScreenMode in multi monitor mode (todays behavior).

~Sven