Reference

XtPending(3) on Linux

The text 6aa66fe612bd, as Debian 8 (Jessie) shipped it.

query and process events and input

XtPending(3) on Linux now