Reference

XtPeekEvent(3x) on Linux

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

query and process events and input

XtPeekEvent(3x) on Linux now