Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!bloom-beacon!dont-send-mail-to-path-lines From: pete@iris49.biosym.COM (Pete Ware) Newsgroups: comp.windows.x Subject: unmapping window in Xtoolkit Message-ID: <9106101633.AA16552@iris49.biosym.com> Date: 10 Jun 91 16:33:01 GMT References: <25318@lanl.gov> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 21 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