Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!deccrl!news.crl.dec.com!jg From: jg@crl.dec.com (Jim Gettys) Newsgroups: comp.windows.x Subject: Re: How do *you* handle multiple displays? Message-ID: <1991Jun28.132932.21795@crl.dec.com> Date: 28 Jun 91 13:29:32 GMT References: <14246@maslow.ptolemy-ri.arc.nasa.gov> <14258@ptolemy-ri.arc.nasa.gov> <1991Jun28.131900.28715@thunder.mcrcim.mcgill.edu> Sender: news@crl.dec.com (USENET News System) Organization: DEC Cambridge Research Lab Lines: 14 In article <1991Jun28.131900.28715@thunder.mcrcim.mcgill.edu>, mouse@thunder.mcrcim.mcgill.edu (der Mouse) writes: > More generally, XConnectionNumber (or the ConnectionNumber macro) > returns "a connection number for the specified display", to quote the > Xlib document. It also says that "On a POSIX system, this is the file > descriptor of the connection.", so the above is probably a reasonably > safe thing to do, if you're willing to stick to UNIXish systems. > > (What about connections that don't have file descriptors? Does the > above forbid such things? I don't know, but wouldn't mind finding out.) It doesn't forbid returning other useful information on other than Unix environments; the specification is deliberately silent to allow for such use. - Jim