Reference

XGetSelectionOwner(3) on Linux

The text 00ab493e3eb9, as Debian 9 (Stretch) shipped it.

manipulate window selection

XGetSelectionOwner(3) on Linux now