Reference

XGetSelectionOwner(3x) on Linux

The text aecb8315be73, as Debian 1.2 (Rex) shipped it.

manipulate window selection

XGetSelectionOwner(3x) on Linux now