pub fn set_selection_owner<Conn, A, B>(
conn: &Conn,
owner: A,
selection: Atom,
time: B,
) -> Result<VoidCookie<'_, Conn>, ConnectionError>Expand description
Sets the owner of a selection.
Makes window the owner of the selection selection and updates the
last-change time of the specified selection.
TODO: briefly explain what a selection is.
§Fields
-
selection- The selection. -
owner- The new owner of the selection.The special value
XCB_NONEmeans that the selection will have no owner. -
time- Timestamp to avoid race conditions when running X over the network.The selection will not be changed if
timeis earlier than the current last-change time of theselectionor is later than the current X server time. Otherwise, the last-change time is set to the specified time.The special value
XCB_CURRENT_TIMEwill be replaced with the current server time.
§Errors
Atom-selectiondoes not refer to a valid atom.
§See
SetSelectionOwner: request