double buffering free objects

Steve Lamont (
Mon, 9 Dec 96 12:10:28 PST

To subscribers of the xforms list from (Steve Lamont) :

> A few days ago, i have posted the following mail:
> > MainLoopUser Event(7,w=0x2400016 s=1032) EnterNotify Mode Normal
> > In EventCallback [events.c 37] Unknown window=0x2400016
> > Ignored Event(7,w=0x2400016 s=1032) EnterNotify Mode Normal
> > PutbackEvent Event(7,w=40390x2400016 s=1032) EnterNotify Mode Normal
> > X Error of failed request: BadWindow (invalid Window parameter)
> > Major opcode of failed request: 10 (X_UnmapWindow)
> > Resource id in failed request: 0x2400038
> > Serial number of failed request: 14038
> > Current serial number in output stream: 1
> >
> > Anyone understanding anything ????
> This error ocurs when i use fl_set_form_dblbuffer in a form with
> some buttons, 3 sliders, text and 2 free objects...
> (If anybody remembers...)
> I *think* i found the problem. This error happens if you freeze
> a form that has been double buffered! Sometimes you get X errors as the above,
> or sometimes nothing appears in the window. This error (is it an error?)
> happens always no matter how simple the form is...

Yup. It looks like an XForms bug to me -- TC, what say you?

I found a workaround (works for me, anyhow, under SunOS 4.1.3, X11R5,
and XForms 0.81):

Change the call to fl_set_form_dblbuffer() to

fl_set_object_dblbuffer( test_form->free1, 1 );

To unsubscribe, send the message "unsubscribe" to or see