[comp.windows.x] CurrentTime in XtOwnSelection

swick@ATHENA.MIT.EDU (Ralph Swick) (05/07/90)

    Can someone please tell me why XtOwnSelection disallows CurrentTime
    for the selection ownership time?  The manual I have says "The value
    CurrentTime is not acceptable".

Section 2.4 of the Inter-Client Communications Conventions Manual:

 "Clients should not use CurrentTime for the time field of
 ConvertSelection requests.  They should use the timestamp
 of the event that caused the request to be made."

The ICCCM is sometimes short on justification, but this particular
convention exists to avoid certain race conditions between owners
(or former owners) and requesters.

The code recognizes that not everyone conforms to conventions all
the time.

	-Ralph.