XSetSelectionOwner(3X) — X Version 11
NAME
XSetSelectionOwner, XGetSelectionOwner, XConvertSelection − manipulate window selection
SYNTAX
XSetSelectionOwner(display, selection, owner, time)
Display ∗display;
Atom selection;
Window owner;
Time time;
Window XGetSelectionOwner(display, selection)
Display ∗display;
Atom selection;
XConvertSelection(display, selection, target, property, requestor, time)
Display ∗display;
Atom selection, target;
Atom property;
Window requestor;
Time time;
ARGUMENTS
displaySpecifies the connection to the X server.
ownerSpecifies the owner of the specified selection atom. You can pass a window ID or None.
propertySpecifies the property atom.
requestorSpecifies the requestor.
selectionSpecifies the selection atom.
targetSpecifies the target atom.
timeSpecifies the time. You can pass either a timestamp, expressed in milliseconds, or CurrentTime.
DESCRIPTION
The XSetSelectionOwner function changes the owner and last change time for the specified selection. .PN XSetSelectionOwner can generate BadAtom and BadWindow errors.
The XGetSelectionOwner function returns the window ID associated with the window that currently owns the specified selection. If no selection was specified, the function returns the constant None. .PN XGetSelectionOwner can generate a BadAtom error.
XConvertSelection requests that the specified selection be converted to the specified target type:
•If the specified selection has an owner, the X server sends a SelectionRequest event to that owner.
•If no owner for the specified selection exists, the X server generates a SelectionNotify event to the requestor with property None. The arguments are passed on unchanged in either event. .PN XConvertSelection can generate BadAtom and BadWindow errors.
DIAGNOSTICS
BadAtom A value for an Atom argument does not name a defined Atom.
BadWindow A value for a Window argument does not name a defined Window.
SEE ALSO
Xlib − C Language X Interface
1 March 1988