home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!wupost!darwin.sura.net!convex!constellation!munnari.oz.au!metro!basser.cs.su.oz.au!ftww
- From: ftww@cs.su.oz.au (Geoff Bailey)
- Subject: Problem with WM_DELETE_WINDOW - need help
- Reply-To: ftww@cs.su.oz.au (Fred The Wonder Worm)
- Organization: Thermonuclear Toys, Pty Ltd
- Date: Thu, 30 Jul 1992 08:34:37 GMT
- Message-ID: <1992Jul30.083437.14744@cs.su.oz.au>
- Followup-To: comp.windows.x
- Sender: ftww@cluster.cs.su.oz.au (Geoff Bailey)
- Lines: 39
-
- G'day! I'm having a problem with using the WM_DELETE_WINDOW protocol.
- After I set the protocol on the window, my window manager's close window
- function doesn't close the window, but I don't seem to be getting the
- ClientMessage event from it either.
-
- If I understand my manual correctly, ClientMessage events do not need to be
- selected and should arrive regardless. But I never receive them.
-
- Further information for the curious:
-
- I'm currently using ncdwm (an mwm lookalike), don't remember the version
- number though. Under it I can close the window in one of two ways:
- 1) select close from the window menu
- 2) hit Alt + F4 in the window.
-
- When I select WM_DELETE_WINDOW, neither of these closes it, although if I hit
- Alt + F4 _twice_ in quick succession the window dies.
-
- As for other window managers, mwm would not close it at all.
- The twm version I had just killed it (I probably chose the wrong option from
- the menu though - kill window, didn't check for a delete window option).
- Tvtwm was as for twm.
- Uwm killed it as well.
-
- I assume I am setting the protocol correctly, as the window doesn't die as it
- normally would. But then two questions remain:
- 1) Why does Alt + F4 twice kill it?
- 2) Why don't I get ClientMessage events?
-
- Any help would be much appreciated, prefer e-mail replies.
-
- Thanks a lot,
- Geoff.
-
- -------------------------------------------------------------------------------
- Geoff Bailey (Fred the Wonder Worm) | Programmer by trade --
- ftww@cs.su.oz.au | Gameplayer by vocation.
- -------------------------------------------------------------------------------
-
-