Path: utzoo!attcan!uunet!mailrus!iuvax!maytag!daemon From: giguere@csg.UWaterloo.CA (Eric Giguere) Newsgroups: comp.windows.x.motif Subject: Catching an exit event Message-ID: <1990Jul9.154749.29605@maytag.waterloo.edu> Date: 9 Jul 90 15:47:49 GMT Sender: daemon@maytag.waterloo.edu (Admin) Organization: Computer Systems Group, U of Waterloo Lines: 15 Pardon me if this is a stupid question: How can I tell under Motif/X when a user has selected the "Close" item on the system menu attached to the top-level shell? As far as I can tell a ClientMessage gets generated and then the application exits. All fine and dandy, but I need to intercept that message so that I can perform my own exit calls before letting Motif continue -- or after, actually. Do I need to add some kind of event handler for XtDispatchEvent to call? Specific info would be appreciated. While I'm at it: we're running Motif on top of XR4. The docs say Motif was designed to work with R3. Am I going to run into any major difficulties? -- Eric Giguere giguere@csg.UWaterloo.CA