Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!emory!gatech!rutgers!njin!princeton!grendel.Princeton.EDU From: rhl@grendel.Princeton.EDU (Robert Lupton (the Good)) Newsgroups: comp.windows.x Subject: Waiting for Xlib events Message-ID: <3540@idunno.Princeton.EDU> Date: 23 Oct 90 23:08:31 GMT Sender: news@idunno.Princeton.EDU Organization: Princeton University, Princeton, New Jersey Lines: 18 I have a number of programmes that spend most of their time doing other things, but also wish to keep an X-window up-to-date. In other words, the XEvent loop is not the main control loop. I am currently doing this by select()ing on input from the keyboard, timing out, and going off to look for XEvents with XCheckMaskEvent(); if there are none pending it's back to select(). It'd like to get a signal of some sort when an event is ready so as not to use up cycles continually (modulo the select() timeout) polling for input, but none seems to be mensioned in the Xlib manuals (specifically the O'Reilly ones). I am not looking for a server-specific hack, so maybe this isn't possible? Robert