XtNextEvent()XtNextEvent()NameXtNextEvent - return next event from input queue.
Synopsis
void XtNextEvent(event_return)
XEvent *event_return;
Inputs
None.
Outputs
event_return
Returns the dequeued event structure.
AvailabilityXtNextEvent() has been superseded by XtAppNextEvent().
DescriptionXtNextEvent() returns the next event on the input queue. If no events
are pending, it flushes the output buffer and blocks. It also dis‐
patches timer and alternate input callbacks and calls any work proce‐
dures that have been registered with XtAddWorkProc().
UsageXtNextEvent() has been superseded by XtAppNextEvent(), which performs
the same function on a per-application context basis. XtNextEvent()
now calls XtAppNextEvent() passing the default application context cre‐
ated by XtInitialize(). Very few programs need multiple application
contexts, and you can continue to use XtNextEvent() if you initialize
your application with XtInitialize(). We recommend, however, that you
use XtAppInitialize(), XtAppNextEvent(), and the other XtApp*() appli‐
cation context specific functions.
See XtAppNextEvent() for more information.
See AlsoXtAppNextEvent(1).
Xt - Event Handling XtNextEvent()