Double buffering and canvases.

Steve Lamont (
Tue, 3 Dec 96 21:11:45 PST

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

> When i put fl_set_form_dblbuffer( ..form.., 1) imediatelly after the form's
> creation i get:
> 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: 4541
> Current serial number in output stream: 4543
> Any suggestions?????

I'm not sure this will work but try turning on doublebuffering
*before* you show (realize) the window. XForms sometimes does some
strange things when changing modes. Another thing that fails is if
you hide a form containing a Canvas object. XForms actually destroys
the Window (and, of course, its child Windows) in the process when it
hides a form. TC: Howcome? I'd think a plain old XUnmapWindow()
would do the trick. This plays hell with any program that needs to
pop up and down images.

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