UNIX/X-windows questions

Chris Curtin chris at bwilab3.UUCP
Tue Jan 8 09:10:03 AEST 1991



I have two simple questions, both of which deal with X windows. (One has
to do with UNIX enviornment variables, so the cross post).

First the UNIX/X question:

I have a application that needs to know the WINDOWID of the window that it
is being run in. So far no problems. BUT when I log into one machine, the
server, then tell the window manager to create a window on another machine
the WINDOWID is lost. I suspect it has to do with how the server is creating
the window and logging in. Now the question: Is it possible to pass this
WINDOWID when the server logs in? I know this has little to do with X but
maybe someone has run into this before.

Now the X question:

We have ported a number of ASCII based programs to X windows and thus
have two versions of the same code. A large installed base and demand for
the ASCII versions have caused this problem. Question: Is it possible to
tell if the program is running in an X enviornment? Most enviornment 
variables will not work since some are set in .login files. The WINDOWID is
also not valid since some programs do not have access to it. (See above)
Is there a call to see if we are in X? I would rather not do a simple call
and see if it fails since this is a hack and doesn't look too good.


Thanks in advance for any and all help

Christopher M. Curtin

--
Christopher M. Curtin				Bradley Ward, Inc.
gatech!galbp!bwilab3!chris			5901-A Peachtree Dunwoody Rd
							Atlanta, Ga 30350
-- 
--
Christopher M. Curtin				Bradley Ward, Inc.
gatech!galbp!bwilab3!chris			5901-A Peachtree Dunwoody Rd
							Atlanta, Ga 30350



More information about the Comp.unix.questions mailing list