Reference

XGetSelectionOwner(3) on Linux

The text 8fd42a6621c1, as Debian 4.0 (Etch) shipped it.

manipulate window selection

XGetSelectionOwner(3) on Linux now