[][src]Function clipboard_x11::set_selection_owner

pub fn set_selection_owner(
    c: &'a Connection,
    owner: u32,
    selection: u32,
    time: u32
) -> Cookie<'a, xcb_void_cookie_t>

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.

parameters:

  • c: The connection object to the server

  • owner: The new owner of the selection.

    The special value XCB_NONE means that the selection will have no owner.

  • selection: The selection.

  • time: Timestamp to avoid race conditions when running X over the network.

    The selection will not be changed if time is earlier than the current last-change time of the selection or is later than the current X server time. Otherwise, the last-change time is set to the specified time.

    The special value XCB_CURRENT_TIME will be replaced with the current server time.