Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!usc!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: Asynch events? Message-ID: <8908281456.AA00651@expire.lcs.mit.edu> Date: 28 Aug 89 14:56:34 GMT References: <3437@ncsuvx.ncsu.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 18 The only way I can think of would be to flush the internal queue and then do a select on the file number that Xlib is using to talk to the server. Right. However this is not very portable. Also Right. What I would like would be a version of XNextEvent with a timeout parameter that can take sub-second values. But many others will argue that this isn't sufficient, since they need to wait on other things besides X events, or they need to wait on multiple displays, or ... It isn't obvious to me what a reasonable and portable interface would be.