|
From: <tim...@en...> - 2006-02-02 14:43:33
|
Another detail from http://tronche.com/gui/x/icccm/sec-2.html (official convention document for interprocess communication between X applications) _____________________________ 2.1. Acquiring Selection Ownership A client wishing to acquire ownership of a particular selection should call SetSelectionOwner, which is defined as follows: SetSelectionOwner selection : ATOM owner : WINDOW or None time : TIMESTAMP or CurrentTime The client should set the specified selection to the atom that represents the selection, set the specified owner to some window that the client created, and set the specified time to some time between the current last-change time of the selection concerned and the current server time. This time value usually will be obtained from the timestamp of the event that triggers the acquisition of the selection. Clients should not set the time value to CurrentTime , because if they do so, they have no way of finding when they gained ownership of the selection. Clients must use a window they created so that requestors can route events to the owner of the selection.2 Convention Clients attempting to acquire a selection must set the time value of the SetSelectionOwner request to the timestamp of the event triggering the acquisition attempt, not to CurrentTime . A zero-length append to a property is a way to obtain a timestamp for this purpose; the timestamp is in the corresponding PropertyNotify event. If the time in the SetSelectionOwner request is in the future relative to the server's current time or is in the past relative to the last time the specified selection changed hands, the SetSelectionOwner request appears to the client to succeed, but ownership is not actually transferred. _____________________ Guess what ? We are using CurrentTime in the x11 terminal... Timoth=E9e |