Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!exodus!frisbee.Eng.Sun.COM!jcb From: jcb@frisbee.Eng.Sun.COM (Jim Becker) Newsgroups: comp.windows.open-look Subject: Re: looking ahead in X event queue Message-ID: <6518@exodus.Eng.Sun.COM> Date: 23 Jan 91 23:13:51 GMT References: <764wey2@openlook.Unify.Com> <1991Jan23.195738.23605@progress.com> Sender: news@exodus.Eng.Sun.COM Lines: 20 desai@progress.COM (Jatin Desai) writes: I think the trick is to use XCheckIfEvent with a predicate function which always returns False, but stores the real return status which gets checked after XCheckIfEvent returns. Jatin Desai Progress Software desai@progress.com The only downside to this `trick' is you have to traverse the entire event queue every time you want to look for something. But it is a legal way to do what is desired. -Jim -- -- Jim Becker / jcb%frisbee@sun.com / Sun Microsystems