Reference

XtPending(3) on Linux

The text d255957582d6, as Debian 6.0 (Squeeze) shipped it.

query and process events and input

XtPending(3) on Linux now