Reference

XWindowEvent(3x) on Linux

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

select events by type

XWindowEvent(3x) on Linux now