Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!uunet!igor!twinkie!drk From: drk@twinkie.Rational.COM (David Kaelbling) Newsgroups: comp.windows.x.motif Subject: DialogShell & autoUnmanage Keywords: dialog,question Message-ID: Date: 14 May 91 00:22:05 GMT Sender: news@Rational.COM Lines: 27 My application often needs to popup a dialog from within a callback. I then want to keep control in the callback until the dialog has been answered. I tried this: // Block until the dialog is answered. XtManageChild(child); while(XtIsManaged(child)) { XtAppNextEvent(app, &event); XtDispatchEvent(&event); } All is fine until the main window is iconified. The dialog iconfies also, and does my loop exits prematurely. What additional test can I add? Obviously somebody knows the dialog is supposed to be managed, because normalizing the main window restores the dialog too... I suppose I can suppress autoUnmanage and add my own activate and delete callbacks, but there must be a better way. I'm running Motif 1.1.2 and MIT X11R4 on a Sun-4. Thanks, David -- David Kaelbling (408) 496-3600 c/o Rational; 3320 Scott Boulevard; Santa Clara, CA 95054-3197 Email: DKaelbling@Rational.COM, or uucp {uunet,ubvax,aeras}!igor!drk