Reference

XCheckTypedWindowEvent(3) on Linux

The text 9f84f5590960, as Debian 6.0 (Squeeze) shipped it.

select events by type

XCheckTypedWindowEvent(3) on Linux now