Michael Kelley (kelleym++at++arpa.mil)
Wed, 1 Nov 1995 18:10:35 -0500 (EST)
Now OpenWindow() looks like this:
void
OpenWindow(pfPipe *p)
{
char display_env[BUF_SIZE];
.
.
.
/*
* "pipe_display" string contains the setting
* of the "DISPLAY" environment variable,
* for example: "DISPLAY=:0.0" :
*/
putenv(pipe_display);
winopen("TEST");
}
I'm using IrisGL code that does pretty much the exact same thing as
OpenWindow().
Now to the problem. The code tries to open up a window on each display
by setting the "display_env" character array. In the Performer code, all
the windows open up on the display that the app was started from. With
the IrisGL code, each window opens on its on display. So the IrisGL
code recognizes the DISPLAY environment variable, but the Performer
code doesn't; and I've been told that the same Performer code
run on a TKO (with displays ":0.0", ":1.0", ":2.0") setup opens
the windows on the correct displays, like the IrisGL code.
I've verified that "pipe_display" is being set correctly. I've
done a getenv after the putenv() but before the winopen() and taken that
information to use dglopen() on that display, and this seems to work.
I've used scrnselect() to select a pipe and that seems to work.
Things get interesting when I place a gversion() or getgdesc() before
the putenv in the IrisGL library. This causes the IrisGL library
to open up all the windows on one display regardless of what the
DISPLAY environment is set to.
So I've come to the conclusion that it's possible that Performer
is calling one of these functions or a similiar Gl function
that causes the winopen() to ignore the DISPLAY environment variable.
Since you've read this far, I guess I should state my question:
Is Performer making any such calls, and why do these calls cause
future winopen() calls to ignore the DISPLAY environment variable?
Thanks!
....................................................................
Michael Kelley.......kelleym++at++ito.snap.org.......kelley_beep++at++arpa.mil
University of Southern California.....Information Sciences Institute
4350 N. Fairfax Dr........Suite 400.......Arlington, VA........22203
phone: (703) 812-4723...fax: (703) 812-4738...pager: (800) 507-5003
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:00 PDT