[comp.windows.x] time for a selection

jcarson@carrel.bcm.tmc.edu (Janet Carson) (09/08/89)

I have a routine which is a callback for a ClientMessage event.
From this routine, I wish to find out the value of the primary
selection using XtGetSelectionValues.  What time to I pass to this
routine?  The doc's say that CurrentTime is not acceptable, but
the ClientMessage event doesn't have a time field associated with 
it.

Is there some way to get an "acceptable" time when the event structure
doesn't provide one?

Janet L. Carson                               internet: jcarson@bcm.tmc.edu 
Baylor College of Medicine              uucp: {rutgers,mailrus}!bcm!jcarson
Janet L. Carson                               internet: jcarson@bcm.tmc.edu 
Baylor College of Medicine              uucp: {rutgers,mailrus}!bcm!jcarson

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (09/09/89)

    The doc's say that CurrentTime is not acceptable, but
    the ClientMessage event doesn't have a time field associated with it.

Since the format of a ClientMessage is entirely application convention,
you should adopt a convention of putting a timestamp in it.  Note that
the ICCCM places a timestamp in the data[1] field of format-32 messages
that it defines.