Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!csus.edu!ucdavis!csusac!unify!openlook!openlook-request From: wolinsky%isys@uunet.UU.NET (Jeff Wolinsky) Newsgroups: comp.windows.open-look Subject: looking ahead in X event queue Message-ID: Date: 21 Jan 91 20:09:11 GMT Lines: 17 It would be VERY useful if I could look ahead in my event queue with the following conditions: (1) If the specific event isn't found, it shouldn't wait. (2) If the event is found, it should be left in its postion in the queue. I know that XCheckIfEvent() satisfies condition 1 but not 2, whereas XPeekIfEvent() satisfies 2 but not 1. Other than pulling every event off the queue and XPutBackEvent() when I'm done, any suggestions? --- Jeffrey Wolinsky - Manager, Software Systems - Isys Controls, Inc. wolinsky@isys.com or uunet!isys!wolinsky