🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #36844

Processing toolkit events

#36844
From: Tom Weinstein
Date: Wed, 14 Feb 1990 22:20
17 lines
1000 bytes
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
Technical Details
Message-ID: <3947@hub.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!ucsd!hub!tom

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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