gui-selection-owner-p-alist

gui-selection-owner-p-alist is a variable defined in `select.el'.
Its value is
((x . x-selection-owner-p) (nil . ignore))


Documentation:
Whether the current Emacs process owns the given X Selection.
Called with one argument: (SELECTION).
The arg should be the name of the selection in question, typically one of
the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.
(Those are literal upper-case symbol names, since that's what X expects.)