Reference

XGetSelectionOwner(3) on Linux

The text f37290777dfe, as Debian 7 (Wheezy) shipped it.

manipulate window selection

XGetSelectionOwner(3) on Linux now