cannot "quit" file browsers

Tristan (
Mon, 03 Mar 1997 13:47:01 -0800

To subscribers of the xforms list from Tristan <> :

I want to be able to "close" (i.e. hide) file browsers with the
window manager's "quit" menu.

Someone suggested to add the following:

fl_set_form_atclose(fl_get_fselector_form(), at_close_ignore, NULL);

Where at_close_ignore() would be defined as:

static int
at_close_ignore(fl_form, data)
FL_FORM *fl_form;
void *data;
return FL_IGNORE;

I tried that, but it does not work: indeed, when I "quit"
my file browser with the window manager's "quit" menu, the
file browser form disapears, but the application hangs.

To see the problem you can modify the fbrowse.c test program as follow:
- add the at_close_ignore() routine (see above).
- add a call to the fl_set_form_atclose in the main()
routine as follow:

main(int argc, char *argv[])
fl_initialize(&argc, argv, "FormDemo", 0, 0);

fl_add_browser_line(br,"LOAD A FILE.");

fl_set_form_atclose(fl_get_fselector_form(), at_close_ignore, NULL);

return 0;

Run the fbrowse program, click on the Load button, and "quit"
the file browser with the file manager "quit" menu.

The file browser forms disapear, but the application
hangs. This looks like a bug of Xforms.

I can reproduce that on Linux and Solaris (xform 0.81).

Regards, -- Tristan Savatier (
MpegTV website:   /cgi-bin/exit-to?
MPEG.ORG website:
To unsubscribe, send the message "unsubscribe" to or see
Xforms Home Page:
List Archive: