Re: Snappy GUI response
Juliusz Chroboczek <[email protected]>
| Newsgroups | gmane.comp.xfree86.forum |
|---|---|
| Message-ID | <[email protected]> |
DJ> Simulating the click with XTest is easy enough. However, I'm unclear
DJ> how to determine when drawing work is done.
I think you'll need to write an extension that generates an event
whenever the server is about to call select. Then your client would
select for this event, use XTest to trigger a redraw, wait a
reasonable amount of time, report the last time it saw the event.
Of course, this assumes that there's no other server-side activity.
The extension should be easy. You can request that your code be
invoked just before calling select (in os/waitfor.c) by passing a
function as the first argument to RegisterBlockAndWakeupHandlers (in
dix/dixutils.c).
Juliusz