XNextEvent() XNextEvent()
Name
XNextEvent - get the next event of any type or window.
Synopsis
XNextEvent(display, event_return)
Display *display;
XEvent *event_return;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
event_return
Returns the event removed from the event queue.
Description
XNextEvent() removes an event from the head of the event queue and copies it into an XEvent structure supplied by the caller. If the event
queue is empty, XNextEvent() flushes the request buffer and waits (blocks) until an event is received. Use XCheckMaskEvent() or XCheck-
IfEvent() if you do not want to wait.
For more information, see Volume One, Chapter 8, Events.
See Also
XQLength(), XAllowEvents(), XCheckIfEvent(), XCheckMaskEvent(), XCheckTypedEvent(), XCheckTypedWindowEvent(), XCheckWindowEvent(),
XEventsQueued(), XGetInputFocus(), XGetMotionEvents(), XIfEvent(), XMaskEvent(), XPeekEvent(), XPeekIfEvent(), XPending(), XPutBackEvent(),
XSelectInput(), XSendEvent(), XSetInputFocus(), XSynchronize(), XWindowEvent().
Xlib - Input Handling XNextEvent()