Re: XForms: Deactivating forms

Dr. T.C. Zhao (zhao@bragg.phys.uwm.edu)
Tue, 24 Jun 1997 22:16:41 -0500

To subscribers of the xforms list from "Dr. T.C. Zhao" <zhao@bragg.phys.uwm.edu> :

from Ivan Powis <pczip@chemistry.nottingham.ac.uk> :

> fl_set_cursor(f->window,XC_watch);
> XSync(fl_get_display(),0);
> fl_deactivate_form(f);
> krunch();
> fl_activate_form(f);
> fl_reset_cursor(f->window);

If krunch takes a long time to finish and the user plays
with the mouse on the form, xforms does not get a chance
to read and get rid of the event. There are three ways
you can fix this: As spl suggested, throw in a few fl_check_forms in
krunch so xforms does get a chance to read the xlib queue;
put a fl_check_forms() loop before activating the form; or
call XSync(fl_get_display(),1) before re-activation.

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/