[comp.windows.x] Does TWM's f.destroy generate WM_DELETE_WINDOW?

bill@polygen.uucp (Bill Poitras) (10/18/90)

I was looking through the ICCCM v1.0 that came with X11R4, and I have a
question about using the WM_PROTOCOL property in a client.  When TWM is told to
destroy a window, and the client has the WM_PROTOCOL property set to notify
when the window is deleted, will the client receive a WM_DELETE_WINDOW message?
It would be too time consuming for me to check it out myself, so I humbly ask
the net to help me out.  Thanks in advance.

+-----------------+---------------------------+-----------------------------+
| Bill Poitras    | Polygen Corporation       | {princeton mit-eddie        |
|     (bill)      | Waltham, MA USA           |  bu sunne}!polygen!bill     |
|                 |                           | bill@polygen.com            |
+-----------------+---------------------------+-----------------------------+

etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) (10/19/90)

In article <846@redford.UUCP>, bill@polygen.uucp (Bill Poitras) writes:
|> I was looking through the ICCCM v1.0 that came with X11R4, and I have a
|> question about using the WM_PROTOCOL property in a client.  When TWM is told to
|> destroy a window, and the client has the WM_PROTOCOL property set to notify
|> when the window is deleted, will the client receive a WM_DELETE_WINDOW message?
|> It would be too time consuming for me to check it out myself, so I humbly ask
|> the net to help me out.  Thanks in advance.


I have tested it out and twm does not seem to pay attention to it.
swm does, however.
-- 
					Eric Taylor
					Baylor College of Medicine
					etaylor@wilkins.bmc.tmc.edu
					(713) 798-3776

jim@ncd.COM (Jim Fulton) (10/19/90)

	[Does twm understand WM_DELETE_WINDOW.]

It's currently sort of crocked.  In retrospect, the f.delete processing 
should probably have been incorporated into f.kill.  Oh well.

jsparkes@bwdls49.bnr.ca (Jeff Sparkes) (10/23/90)

In <9010191519.AA03560@hansen.com> jim@ncd.COM (Jim Fulton) writes:


>	[Does twm understand WM_DELETE_WINDOW.]

>It's currently sort of crocked.  In retrospect, the f.delete processing 
>should probably have been incorporated into f.kill.  Oh well.

You can work around it by making a function that does both.  I do this to
run OpenLook applications.

function icccm-kill
{
	f.delete
	f.kill
}
--
Jeff Sparkes		jsparkes@bnr.ca
Another feature is that the seats float, so that the airline can recover
them if the plane crashes into the ocean. -- Dave Barry