Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!bellcore!bae!aw From: aw@bae.bae.bellcore.com (Andrew Wason) Newsgroups: comp.windows.x Subject: Re: Parent window Message-ID: <1990Dec18.153050.26398@bellcore.bellcore.com> Date: 18 Dec 90 15:30:50 GMT References: <1990Dec17.135127.867@nas.nasa.gov> Sender: usenet@bellcore.bellcore.com (Poster of News) Reply-To: aw@cellar.bae.bellcore.com Organization: Bell Communications Research Lines: 20 In article <1990Dec17.135127.867@nas.nasa.gov>, parlette@nas.nasa.gov (Edward B. Parlette) writes: > From within my client program I would like to be able to > pop my 'parent window' forward. (By 'parent window' I mean the > xterm window that the user used to start my program). This would > allow me to use stderr and stdout for writing error messages. ( I know > there are better ways of informing the user of errors but for > other reasons I need to be able to do this. ) Thanks for any info. Xterm sets the environment variable WINDOWID to the window ID of the xterm window. You could do an XRaiseWindow() on this. But are you sure your client will always be started from an xterm (not a window manager menu, or from an rsh to another machine, or from a cmdtool or something else)? Andrew -------------------------------------------------------------------------------- Andrew Wason Bell Communications Research aw@cellar.bae.bellcore.com Piscataway, NJ bellcore!cellar!aw