Reference

XtPending(3) on Linux

The text 6cf1fe0cb61b, as Debian 7 (Wheezy) shipped it.

query and process events and input

XtPending(3) on Linux now