Reference

XGetSelectionOwner(3) on Linux

The text 72a1bde579ca, as Debian 5.0 (Lenny) shipped it.

manipulate window selection

XGetSelectionOwner(3) on Linux now