On 02.12.2009, at 01:06, Terry Welsh wrote:

> I'm using fltk2 on Linux and trying to open 3 GlWindows on 3 separate 
> displays.  My best guess at how to do this is to follow the instructions in 
> x11/run.cxx and change the value of fltk::xscreen immediately after calling 
> open_display().  I tried to do this by overriding Window::show(), but there 
> are some private members of fltk::Window that prevent this.  Am I barking up 
> the wrong tree here?  Is there a better way to open windows on multiple 
> displays?

Just position the window on the right screen. The screen coordinate syste 
should simply stretch over all (Desktop-)screens, so that the first screen runs 
from x=0 to x=1279, and the second one goes from 1280 to 2559, etc. .

If your screen is not a regular desktop screen, you would need to change the 
fl_display variable (IIRC), but  that is untested and may  not even be 
implemented at all.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to