Reference

XtPeekEvent(3x) on Linux

The text 9d8a3c084b0a, as Debian 1.1 (Buzz) shipped it.

query and process events and input

XtPeekEvent(3x) on Linux now