Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!ginosko!uunet!crdgw1!montnaro From: montnaro@sprite.crd.ge.com (Skip Montanaro) Newsgroups: comp.windows.x Subject: Re: Help with double-click recognition. Message-ID: Date: 20 Oct 89 13:48:40 GMT Sender: news@crdgw1.crd.ge.com Reply-To: (Skip Montanaro) Organization: GE Corporate Research & Development, Schenectady, NY Lines: 31 This note showed up in comp.windows.news. I thought it might be interesting for those people following the same thread in comp.windows.x. Can somebody speak to Robin's question about timestamp ordering of events in X? ---------- begin included message ---------- From: robin@SUN.COM (Robin Schaufler) Newsgroups: comp.windows.news Subject: Re: Help with double-click recognition. Message-ID: <8910192039.AA00634@borogove.sun.com> Date: 20 Oct 89 08:17:38 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 13 The difficulty with waiting for another event and then looking at the timestamp is knowing how long to wait. In NeWS, this problem is solved by sending oneself a shuttle event timestamped in the future; since distribution of events is ordered by timestamp, if the shuttle arrives before another down transition, then it is known to be a single click. If the down transition arrives before the shuttle, the client can dequeue the shuttle so it never gets distributed. X does not have this notion of timestamp ordering for all events. I don't see any way to implement this sort of shuttle interface. If anyone else does, please enlighten me. -- Robin ---------- end included message ---------- -- Skip Montanaro (montanaro@crdgw1.ge.com)