home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / x / 14675 < prev    next >
Encoding:
Text File  |  1992-07-31  |  2.1 KB  |  52 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!wupost!darwin.sura.net!convex!constellation!munnari.oz.au!metro!basser.cs.su.oz.au!ftww
  3. From: ftww@cs.su.oz.au (Geoff Bailey)
  4. Subject: Problem with WM_DELETE_WINDOW - need help
  5. Reply-To: ftww@cs.su.oz.au (Fred The Wonder Worm)
  6. Organization: Thermonuclear Toys, Pty Ltd
  7. Date: Thu, 30 Jul 1992 08:34:37 GMT
  8. Message-ID: <1992Jul30.083437.14744@cs.su.oz.au>
  9. Followup-To: comp.windows.x
  10. Sender: ftww@cluster.cs.su.oz.au (Geoff Bailey)
  11. Lines: 39
  12.  
  13. G'day!  I'm having a problem with using the WM_DELETE_WINDOW protocol.
  14. After I set the protocol on the window, my window manager's close window
  15. function doesn't close the window, but I don't seem to be getting the
  16. ClientMessage event from it either.
  17.  
  18. If I understand my manual correctly, ClientMessage events do not need to be
  19. selected and should arrive regardless.  But I never receive them.
  20.  
  21. Further information for the curious:
  22.  
  23. I'm currently using ncdwm (an mwm lookalike), don't remember the version
  24. number though.  Under it I can close the window in one of two ways:
  25. 1) select close from the window menu
  26. 2) hit Alt + F4 in the window.
  27.  
  28. When I select WM_DELETE_WINDOW, neither of these closes it, although if I hit
  29. Alt + F4 _twice_ in quick succession the window dies.
  30.  
  31. As for other window managers, mwm would not close it at all.
  32. The twm version I had just killed it (I probably chose the wrong option from
  33. the menu though - kill window, didn't check for a delete window option).
  34. Tvtwm was as for twm.
  35. Uwm killed it as well.
  36.  
  37. I assume I am setting the protocol correctly, as the window doesn't die as it
  38. normally would.  But then two questions remain:
  39. 1)  Why does Alt + F4 twice kill it?
  40. 2)  Why don't I get ClientMessage events?
  41.  
  42. Any help would be much appreciated, prefer e-mail replies.
  43.  
  44. Thanks a lot,
  45. Geoff.
  46.  
  47. -------------------------------------------------------------------------------
  48. Geoff Bailey (Fred the Wonder Worm)   |   Programmer by trade --
  49. ftww@cs.su.oz.au                      |       Gameplayer by vocation.
  50. -------------------------------------------------------------------------------
  51.  
  52.