Reference

XCheckTypedWindowEvent(3) on Linux

The text be7767ddcd50, as Debian 11 (Bullseye) shipped it.

select events by type

XCheckTypedWindowEvent(3) on Linux now