Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!utah-gr!utah-cs!sandra From: sandra@utah-cs.UUCP (Sandra J Loosemore) Newsgroups: comp.windows.x Subject: Re: Detecting/Compressing Multiple Exposure Events - how ? Message-ID: <5689@utah-cs.UUCP> Date: 31 Aug 88 18:44:11 GMT References: <126@tityus.UUCP> <19880831125525.6.RWS@KILLINGTON.LCS.MIT.EDU> Organization: University of Utah CS Dept Lines: 11 Any clues on how to do this in CLX? I just tried some experiments with using an EVENT-CASE with :timeout 0 and :discard-p t to scan through the event queue, discarding all but the first expose event on a window. But returning T from the clause to indicate that the event should be kept would also exit from the EVENT-CASE, so you'd never see whether there are more expose events in the queue or not. I tried doing a recursive call to EVENT-CASE to look at the remaining events, but that seemed to end up throwing out events it shouldn't have. I'd appreciate seeing a bit of code that actually works. -Sandra Loosemore (sandra@cs.utah.edu)