Reference

XISelectEvents(3) on Linux

The text a02db866295c, as Debian 7 (Wheezy) shipped it.

select for or get selected XI2 events on the window.

XISelectEvents(3) on Linux now