[comp.windows.x] unmapping window in Xtoolkit

aob@lanl.gov (Alexander O. Brown) (06/08/91)

I cannot seem to get XtUnmapWidget to unmap
any widgets.  I've also tried to unrealize and
destroy them also. They freeze on the screen, but
will not disappear.  Anybody have any idea where
I am going wrong?


Thanks, 
	Alex Brown
	aob@lanl.gov

pete@iris49.biosym.COM (Pete Ware) (06/10/91)

aob> I cannot seem to get XtUnmapWidget to unmap
aob> any widgets.  I've also tried to unrealize and
aob> destroy them also. They freeze on the screen, but
aob> will not disappear.  Anybody have any idea where
aob> I am going wrong?
Probably two things: (1) calls are buffered and aynchronous so calling
XtUnmapWidget (or XtUnrealize) may not get sent or acted upon for some
indeterminate amount of time; (2) you may be ignoring or not waiting
for the expose events to redraw the newly visible regions (although
the server should clear the exposed regions to the background color).

Both problems should disappear if you return to the event loop.  When
debugging, it is also useful to run in synchronous mode, either with
the toolkit command line option, -sync, or by calling
XSynchronize (display, True)

Or it could be a real bug in your server.

--pete
Pete Ware / Biosym / San Diego CA / (619) 546-5532
     email: pete@biosym.com