Login  Register

Re: glwindow on secondary monitor

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

On Tuesday, December 20, 2011 10:48:40 AM Triipaxx [via jogamp] wrote:
>

Monitor -> Screen.

> uhhhmm....something like this?
>
> Display d = NewtFactory.createDisplay("Display");
Display d = NewtFactory.createDisplay(":0.1"); ?

It depends, ie the connection-name is native and currently only makes sense for X11
where connection-name == X11 DISPLAY name.

> Screen s = NewtFactory.createScreen(d, 1);

If the 2nd screen is not merged to the 1st one by
your desktop manager (big desktop setup) - it should work.

> GLWindow window= new GLWindow(NewtFactory.createWindow(s, caps));
>

~Sven