XPending

Syntax

int XPending(display)
      Display *display;

Arguments

display Specifies the connection to the X server.

Description

The XPending() function returns the number of events that have been received from the X server but have not been removed from the event queue. XPending() is identical to XEventsQueued() with the mode QueuedAfterFlush specified.

See also

XEventsQueued(), XFlush(), XIfEvent(), XNextEvent(), XPutBackEvent(), XSync(), "Event Queue Management"
Christophe Tronche, ch@tronche.com