Re: glwindow on secondary monitor
Posted by Sven Gothel on Dec 20, 2011; 5:08pm
URL: https://forum.jogamp.org/glwindow-on-secondary-monitor-tp3593579p3601751.html
On Tuesday, December 20, 2011 04:42:06 PM Triipaxx [via jogamp] wrote:
>
> it still don't work.
> the window is always shown on the primary monitor.
> no matter if i pass in 1 or 0 or whatever as index to the
> createScreen()-function.
> can you help me?
>
The DISPLAY connection of Display, and Screen ID's are very OS specific.
IE. on X11:
1 - Two or more X11 DISPLAY/Server for their Screens:
- DISPLAY = ":0.0" or null (default), ":0.1" or ":1.0" .. depends on your setup
This can be even a remote DISPLAY connection, ie: "192.168.0.55:0.0"
- Screen idx: 0, 1, ..
2 - One X11 DISPLAY/Server for 2 Screens, with Xinerama enabled (no big desktop):
- DISPLAY = ":0.0" or null (default)
- Screen idx: 0, 1, ..
3 - One X11 DISPLAY/Server for 2 Screens, without Xinerama but big desktop:
- DISPLAY = ":0.0" or null (default)
- Screen idx: 0
Sorry .. here you are out of luck, since all Screens are mapped as one!
Windows:
- Forget DISPLAY, use null (default)
- Then (1) and (2) apply as above, hence big-desktop setup will fail as well.
So which OS and Screen setup do you use ?
~Sven