On Wed, Oct 6, 2010 at 9:21 PM, Marc Lehmann <[email protected]> wrote:
> Any function that you want to apply to random windows should go into the wm.
> that's what it is for - managing windows.

No WM is wise enough to know whether the window you are closing has
any data to lose. Is it just a desktop calculator, or are you writing
your thesis there? The WM doesn't know. The application does, and it's
the one that should ask for confirmation before discarding user data.

> It might make a difference for a program that is in different states and
> knows it has valuable data to lose, but urxvt is not such a program.

I'm suprised you think so little of urxvt! :)
Here's a scenario: you can be composing an email in elinks in one tab,
writing code in vim/emacs in another and have ssh proxying a
connection in a third. When you accidentally alt-F4 urxvt, all of
these programs get killed without a second chance (HUPed I assume). If
you had tried to exit from them individually, elinks would have asked
for confirmation, the text editor most certainly so, and ssh would
have remained connected as long as the proxy channel was being used.
But they don't get a chance to do that, urxvt overrides their
protections and takes them down with itself: data loss. A simple
(optional) "Are you sure?" confirmation request would prevent it.


Mihai

_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode

Reply via email to