Reference

XGetSelectionOwner(3) on Linux

The text 881a2d9ec5d8, as Debian 10 (Buster) shipped it.

manipulate window selection

XGetSelectionOwner(3) on Linux now