Reference

XWindowEvent(3) on Linux

The text e782c467e399, as Debian 5.0 (Lenny) shipped it.

select events by type

XWindowEvent(3) on Linux now