Reference

XGetSelectionOwner(3) on Linux

The text 6508785f224f, as Debian 8 (Jessie) shipped it.

manipulate window selection

XGetSelectionOwner(3) on Linux now