>
> >     Possibly unrelated, but just for correctness; I'm=20
> > pretty sure you want
> >     the update() function to use repeat_timeout().
>
> In general yes, add_timeout() to get things started, then
> repeat_timeout() for, well, repeats...
>
> However, on some implementations repeat_timeout() seems to be just a
> wrapper for add_timeout() anyway, so it may not make any difference in
> practice.
>
>
> Anyway, tried this on a few hosts, seems to work just fine - fualt not
> found...
>
> Though, I did have to add a #include for stdlib.h to allow exit() to be
> called - so I wonder if sparkaround's implementation is picking up "some
> other" exit function and that's what causes the problem?
>
With the help of printf and gettimeofday, I found that the slow is not due to 
exit function. The function "event_key" is called many times before the 
keyboard input is detected finally. The cache that event_key get keyboardstate 
on X11 is not updated according to the keyboard input when dobuble buffer is 
on.  I do not know the reason, but replacing event_key with get_key solved this 
problem.

> Also; sparkaround, please don't post with line numbers - my editor is
> too dumb to know to strip them!
>
Ok. Sorry.
>
> Cheers,
> --=20
> Ian
>
>
> SELEX Galileo Ltd
> Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS=
> 14 3EL
> A company registered in England & Wales.  Company no. 02426132
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************
>

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to