home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.windows.x
- Subject: Re: Kills from Window Manager
- Date: 30 Jul 1992 07:03:45 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 36
- Message-ID: <15848hINNalt@early-bird.think.com>
- References: <1460adINN77b@early-bird.think.com> <14ptagINNrdo@early-bird.think.com> <1992Jul30.004540.7641@thunder.mcrcim.mcgill.edu>
- NNTP-Posting-Host: gandalf.think.com
-
- In article <1992Jul30.004540.7641@thunder.mcrcim.mcgill.edu> mouse@thunder.mcrcim.mcgill.edu (der Mouse) writes:
- >An application that does multiple top-level windows but
- >still doesn't do WM_DELETE_WINDOW is IMO broken badly enough that I'm
- >willing to ignore its existence.)
-
- I guess this is where we differ. I believe WM_DELETE_WINDOW was introduced
- in X11R4. R4 and R5 servers and window managers are supposed to be upward
- compatible with R3 clients. There are probably many applications that
- haven't been significantly enhanced since then (they may have been
- recompiled with the R4 or R5 libraries if you're lucky). I don't think
- that these are "broken badly", they're just slightly out of date.
-
- Nowhere in the ICCCM does it say that multi-window clients must implement
- WM_DELETE_WINDOW. It seemed to be an optional protocol to me. It's
- certainly a good idea, but if an application provides other mechanisms to
- delete windows then it isn't required.
-
- And even if applications that *should* do WM_DELETE_WINDOW but don't are
- broken, I don't feel that it's such a serious bug in the application that
- they deserve to crash. If the user performs an operation that is
- documented as deleting a single window, and it causes the application to
- die, that's not a Good Thing. While we can argue that it's the application
- developer's mistake, the WM designer certainly isn't helping matters by
- performing an XKillClient() when a WM_DELETE_WINDOW was intended. It's
- poor human factors to expand the effect of a request in that manner.
-
- A reasonable compromise could be for the WM manager to try
- WM_DELETE_WINDOW. If it fails, it could put up an alert "Couldn't delete
- the specified window. Should the entire client be killed?" This is
- analogous to the "Do you really want to exit?" alert that many applications
- produce when you try to delete their main window.
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-