How about this ?

        Danny

XtLastEventProcessed(3Xt)  XT FUNCTIONS XtLastEventProcessed(3Xt)


NAME
       XtLastEventProcessed, XtLastTimestampProcessed - last
       event, last timestamp processed

SYNTAX
       XEvent* XtLastEventProcessed(display)
             Display* display;

       Time XtLastTimestampProcessed(display)
             Display* display;

ARGUMENTS
       display   Specifies the open display connection.

DESCRIPTION
       XtLastEventProcessed returns the last event passed to
       XtDispatchEvent for the specified display and NULL if
       there has been no event. The client must not modify the
       contents of the returned event.

       XtLastTimestampProcessed returns the timestamp of the last
       KeyPress, KeyRelease, ButtonPress, ButtonRelease,
       MotionNotify, EnterNotify, LeaveNotify, PropertyNotify, or
       SelectionClear event that has been passed to XtDis-
       patchEvent for the specified display and zero if there has
       been no such event.

SEE ALSO
       X Toolkit Intrinsics - C Language Interface
       Xlib - C Language X Interface


Rick Scott wrote:
> 
> Does anyone know how to retrieve the "current X server time"??
> 
> In the LessTif tests (ie rowcolumn/test50) we are simulating
> buttonpress/buttonrelease events in order to test the menu system by using
> XSendEvent. In here is the event time. It seems that a couple of problems have
> been solved by being "a little picky" about when a menu gets posted. In Motif
> 2, we are generating a bunch of "GrabInvalidTime" responses to the grabs. In
> order to simulate the events correctly I need to find a time that is not
> 
> "earlier than the last-keyboard-grab time or later than the current X server
> time".
> 
> Specifying CurrentTime in an XSendEvent does not work. I'm even willing to rely
> on private Xt internals at this point....

-- 
Danny Backx ([EMAIL PROTECTED] [EMAIL PROTECTED])
Home page :     http://users.skynet.be/danny.backx
Projects:       LessTif (http://www.lesstif.org)
                Oleo    (http://www.gnu.org/software/oleo/oleo.html)

Reply via email to