Path: utzoo!attcan!uunet!husc6!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: too many motion notify events Message-ID: <8812201308.AA23456@EXPO.LCS.MIT.EDU> Date: 20 Dec 88 13:08:11 GMT References: <10759@tekecs.TEK.COM> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 9 What I'd like to do would be to have a function which like XCheckMaskEvent which returns False if the queue is empty OR if the next event on the queue fails to match the mask. With a little cleverness, you can do almost anything with XIfEvent. You'll need to store and look at extra state somewhere in the "arg". Not all that elegant (the predicate probably should have been designed with a "giveup" return value), but it will work.