Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!snorkelwacker!bloom-beacon!eng.sun.COM!jcb From: jcb@eng.sun.COM (Jim Becker) Newsgroups: comp.windows.x Subject: Re: Browsing Event Queue Message-ID: <9009140048.AA08079@frisbee.Eng.Sun.COM> Date: 14 Sep 90 00:48:44 GMT References: <9009132329.AA27408@expire.lcs.mit.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 19 Bob Scheifler writes: > As far as I can tell there is no way to look for a certain > type of event without blocking or removing it from the queue. Use XCheckIfEvent. Have your predicate *always* return False. Call it ugly, call it a kludge, but it works and it's portable. Yes, it means you always walk all the way through the event queue .... Sorry, should have mentioned this as an option. The disadvantage is walking the entire list each time, something I didn't want to do. -Jim -- Jim Becker / jcb%frisbee@sun.com / Sun Microsystems