Song Cover Image

ICCCM Giving Up Selection Ownership

Giving Up Selection Ownership Clients may either give up selection ownership voluntarily or lose it forcibly as the result of some other client's actions. Voluntarily Giving Up Selection Ownership To relinquish ownership of a selection voluntarily, a client should execute a SetSelectionOwner request for that selection atom, with owner specified as None and the time specified as the timestamp that was used to acquire the selection. Alternatively, the client may destroy the window used as the owner value of the SetSelectionOwner request, or the client may terminate. In both cases, the ownership of the selection involved will revert to None. Forcibly Giving Up Selection Ownership If a client gives up ownership of a selection or if some other client executes a SetSelectionOwner for it and thus reassigns it forcibly, the previous owner will receive a SelectionClear event. For the definition of a SelectionClear event, see the section called “Responsibilities of the Selection Owner” The timestamp is the time the selection changed hands. The specified owner is the window that was specified by the current owner in its SetSelectionOwner request.