Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!spool.mu.edu!sdd.hp.com!wuarchive!emory!att!bu.edu!polygen!bill From: bill@polygen.uucp (Bill Poitras) Newsgroups: comp.windows.x.motif Subject: Re: how to trap f.kill Message-ID: <971@redford.UUCP> Date: 4 Feb 91 14:56:15 GMT References: <1991Jan22.010234.15702@sat.uucp> <110630031@hpcvlx.cv.hp.com> Reply-To: bill@redford.UUCP (Bill Poitras(X258)) Organization: Polygen Corporation, Waltham, MA Lines: 16 In article <110630031@hpcvlx.cv.hp.com> keith@hpcvlx.cv.hp.com (Keith Taylor) writes: >Use the WM_DELETE_WINDOW protocol as described in the Inter-Client >Communication Conventions Manual (ICCCM). You will get a >WM_DELETE_WINDOW message from the window manager in response to an >f.kill. I don't think that TWM can trap f.kill, even if WM_DELETE_WINDOW is set on a window. I believe the function you need to use to destroy a window that uses the WM_DELETE_WINDOW protocol f.delete. See the man page for TWM. +-----------------+---------------------------+-----------------------------+ | Bill Poitras | Polygen Corporation | {princeton mit-eddie | | (bill) | Waltham, MA USA | bu sunne}!polygen!bill | | | FAX (617)890-8694 | bill@polygen.com | +-----------------+---------------------------+-----------------------------+