Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!bloom-beacon!deccrl!news.crl.dec.com!jg From: jg@crl.dec.com (Jim Gettys) Newsgroups: comp.windows.x Subject: Re: Xlib event loop for 2 servers from single client ? Message-ID: <1991Jan10.220308.5385@crl.dec.com> Date: 10 Jan 91 22:03:08 GMT References: <1991Jan10.214142.1766@wrkgrp.uucp> Sender: news@crl.dec.com (USENET News System) Reply-To: jg@crl.dec.com (Jim Gettys) Organization: DEC Cambridge Research Lab Lines: 6 No, not in Xlib. The way you do what you want is get the file descriptor "fileno(dpy)", and then make sure everything has been flused before calling the "select" (on BSD derived systems; Sys V has "poll" instead, though many system V based systems out there provide select.).