Reference

XtDispatchEvent(3x) on Linux

The text b8049eb5e36f, as Debian 1.2 (Rex) shipped it.

query and process events and input

XtDispatchEvent(3x) on Linux now