Reference

XtPending(3) on Linux

The text b31042239b53, as Debian 5.0 (Lenny) shipped it.

query and process events and input

XtPending(3) on Linux now