XNextEvent

Syntax

XNextEvent(display, event_return)
      Display *display;
      XEvent *event_return;

Arguments

display Specifies the connection to the X server.
event_return Returns the next event in the queue.
The XNextEvent() function copies the first event from the event queue into the specified XEvent structure and then removes it from the queue. If the event queue is empty, XNextEvent() flushes the output buffer and blocks until an event is received.

See also

XAnyEvent, XCheckMaskEvent(), XCheckTypedEvent(), XCheckTypedWindowEvent(), XCheckWindowEvent(), XIfEvent(), XMaskEvent(), XPeekEvent(), XPutBackEvent(), XSendEvent(), XWindowEvent(), "Returning the Next Event"
Christophe Tronche, [email protected]