Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!uc!wj.msc.umn.EDU!ken From: ken@msc.umn.EDU (Ken Chin-Purcell) Newsgroups: comp.windows.x Subject: Getting a time stamp in Xt Keywords: Xt timestamp Message-ID: <104@uc.msc.umn.edu> Date: 4 Jul 89 18:47:25 GMT Sender: news@uc.msc.umn.edu Organization: Minnesota Supercomputer Center Lines: 17 I would like to call XtGetSelectionValue while in a command widget callback. In order to be ICCCM compliant (to avoid race conditions, I suppose), the time stamp of the mouse down event that triggered the callback needs to pe passed as a parameter. The toolkit however seems to hide the XEvent record. One solution is to register an event handler with the command widget, using XtAddRawEventHandler. When that handler is called, cache the XEvent in a global, and then assume that the callback is called immeadiately after the event handler (so I can depend on my cached XEvent being correct). Is there a cleaner way to get the time stamp? -- Ken [ aka: ken@msc.umn.edu (612) 626-1340 ]