If I replace Fl::event_key with Fl::get_key, the widget window can responce to 
key 'a' quickly.

It is very strange. Is there some cache-policies that can be triggered by 
Fl_Double_Window?


I check the documentation on event_key(int) again:

"Returns true if the given key was held down (or pressed) during the last event.

This is constant until the next event is read from the server.

Fl::get_key(int) returns true if the given key is held down now. Under X this 
requires a round-trip to the server and is much slower than Fl::event_key(int)."

If get_key is slow, how to force the xserver to send event if I have press a 
key? I guess there is something like input-cache when double-buffer is enabled.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to