Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!xanth!mcnc!pickel From: pickel@mcnc.org (Lisa C. Pickel) Newsgroups: comp.windows.x Subject: do-it-yourself popups in Xlib Keywords: how Message-ID: <4748@alvin.mcnc.org> Date: 21 Jun 89 15:24:11 GMT Distribution: na Organization: Microelectronics Center of NC; RTP, NC Lines: 26 Okay, I give up. I'm still at work porting old things to X11, and my question is: what is the proper way to open popup windows and then get them to disappear again? Obviously, I'm missing completely the proper X "philosophy" on this issue. In the following, I use the ancient term "popup" to refer to any child window of the parent in my application. The children lie totally within the bounds of the parent and they are spawned by the parent window. I want to draw objects inside my popups and then, when I kill the popup, have the whole mess disappear. It does not. I've tried: 1) Save-under. We don't have it. That's out. 2) Saving the underlying pixmap before mapping the popup (with IncludeInferiors set). However, I still get garbage in the pixmap where other popups beneath the popup in question lie. (Yes, everybody has the same depth). 3) Drawing everything to the parent window and defining the popup as InputOnly. This seems kludgey and philosophically incorrect. I mean, you open a window, graphical operations are defined to occur in that window, shouldn't you *draw* in that window? Anyway, it too seems not to work properly. Lisa.