Path: utzoo!attcan!uunet!lll-winken!arisia!sgi!daisy!klee From: klee@daisy.UUCP (Ken Lee) Newsgroups: comp.windows.x Subject: Re: too many motion notify events Message-ID: <2205@daisy.UUCP> Date: 20 Dec 88 21:46:35 GMT References: <10759@tekecs.TEK.COM> Reply-To: klee@daisy.UUCP (Ken Lee) Organization: Daisy Systems Corp., Mountain View, Ca. Lines: 20 In article <10759@tekecs.TEK.COM> antoniof@af.UUCP (Antonio Freixas) writes: >An alternative approach is the following: > > case MotionNotify: > /* Find the latest motion event on the queue. Discard > all the others */ > while (XCheckMaskEvent(dpy, PointerMotionMask, &e_temp)) { > e = e_temp; > } This should be about the same as using PointerMotionHints and XQueryPointer. In fact, PointerMotionHints may be more efficient, since the server doesn't send as much stuff back to the client. Ken Lee Daisy Systems Corp., Interactive Graphics Tools Dept. -- uucp: uunet!daisy!klee arpanet: daisy!klee@uunet.uu.net "DC6 which is being used for [Contra weapons supply] runs out of New Orleans is probably being used for drug runs into U.S." - Oliver North, August, 1985