XGetSelectionOwner()XGetSelectionOwner()NameXGetSelectionOwner – return the owner of a selection.
Synopsis
Window XGetSelectionOwner(display, selection)
Display *display;
Atom selection;
Arguments
display Specifies a connection to an X server; returned from
XOpenDisplay().
selection Specifies the selection atom whose owner you want returned.
Returns
The window associated with the selection owner.
DescriptionXGetSelectionOwner() returns the window ID of the current owner of the
specified selection. If no selection was specified, or there is no
owner, the function returns the constant None.
For more information on selections, see Volume One, Chapter 12, Inter‐
client Communication.
Errors
BadAtom
See AlsoXConvertSelection(), XSetSelectionOwner().
Xlib - Selections XGetSelectionOwner()