Reference

XtDispatchEvent(3x) on Linux

The text fa0bd672985b, as Debian 3.0 (Woody) shipped it.

query and process events and input

XtDispatchEvent(3x) on Linux now