Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!swrinde!ucsd!telesoft!jdart From: jdart@telesoft.com (Jon Dart @pulsar) Newsgroups: comp.windows.x.motif Subject: Re: WM closing sub-top-level windows Message-ID: <1991Jun26.040858.23338@telesoft.com> Date: 26 Jun 91 04:08:58 GMT References: <1991Jun21.181233.2669@watserv1.waterloo.edu> Reply-To: jdart@telesoft.UUCP (Jon Dart @pulsar) Distribution: na Organization: TeleSoft, San Diego, CA Lines: 17 If you are using mwm, you can remove the Close item from the window manager menu by settting the XmNmwmFunctions resource on the shell widget. I'm not sure about other window managers. As for getting notified when top-level windows are destroyed, I believe you are on the right track using XmAddProtocolCallback. It is true that this does not exist in X11R3, but the same effect can be accomplished by using XChangeProperties. You need to add WM_DELETE_WINDOW to the WM_PROTOCOLS property on the shell window. You must also install an event handler to process ConfigureNotify events on the shell window. -- Jon Dart | 5959 Cornerstone Ct. W., | jdart@telesoft.com Sr. Software Engineer | San Diego, CA 92121 | ..uscd.edu! TeleSoft, Inc. | (619)-457-2700 | telesoft.com!jdart