Newsgroups: comp.windows.x Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!m.cs.uiuc.edu!uiucdcs!carroll From: carroll@cs.uiuc.edu (Alan M. Carroll) Subject: Reparenting, and Save sets Message-ID: <1991Apr17.222252.18025@m.cs.uiuc.edu> Sender: news@m.cs.uiuc.edu (News Database (admin-Mike Schwager)) Nntp-Posting-Host: ash.cs.uiuc.edu Reply-To: carroll@cs.uiuc.edu (Alan M. Carroll) Organization: Technophiles Inc. - Engineers with Attitude Date: Wed, 17 Apr 91 22:22:52 GMT Lines: 22 I have an application that is reparenting Epoch screens, and I'm having some problems with it. I'm running mwm, Motif 1.1, X11R4, on a Sparc IPC with SunOS 4.1.1. The first problem is that if the target window is mapped, I can't reparent it. If I make sure that it is unmapped before my application tries to reparent it, it works. The target window is a toplevel window before the reparenting. Also, if it's mapped and I try to reparent it, it gets unmapped, but not reparented. Doing an unmap right before the reparent doesn't work either, although it also unmaps the target window. Second, when my application exits, the target window is destroyed. I've tried using XAddToSaveSet() and XChangeSaveSet(), but they don't seem to have any effect. Do save sets actually work? This happens with both XCloseDisplay() and XtCloseDisplay(). -- Alan M. Carroll <-- Another victim of applied metaphysics Epoch Development Team Urbana Il. "I hate shopping with the reality-impaired" - Susan