Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!ucsd!hub!tom From: tom@capella.ucsb.edu (Tom Weinstein) Newsgroups: comp.windows.x Subject: Processing toolkit events Message-ID: <3947@hub.UUCP> Date: 14 Feb 90 22:20:10 GMT Sender: news@hub.UUCP Reply-To: tom@bears.ucsb.edu Distribution: comp Organization: /usr2/research/tom/.organization Lines: 17 I'm trying to process events using the X toolkit in a way that will not block when the queue is empty. This is what I'm doing: XEvent event; while (XtAppPending(context)) { XtAppNextEvent(context, &event); XtDispatchEvent(&event); } However, this seems to block when there are no events in the queue. Am I doing something wrong, or is this a bug? -- It does not do to leave a dragon | Tom Weinstein ...ucbvax!hub!ucsbuxa!6600tom out of your calculations, if you | 6600tom@ucsbuxa.bitnet tom@bears.ucsb.edu live near him. --J.R.R. Tolkien | 6600tom@ucsbuxa.ucsb.edu tomw@cornu.ucsb.edu