[dwm] Preventing xterm from closing by killclient()

From: Martin Sander <forke_AT_uni-bonn.de>
Date: Wed, 9 Apr 2008 16:03:44 +0200

Hey.
In the last time I repeatedly closed xterm windows on accident by my
killclient binding (MODKEY|ShiftMask, XK_c) because I did not see that
the xterm had focus and not that stupid other client that does not
provide a convenient keyboard shortcut of its own to close.

I always close xterms with Ctrl-D when I want them to close, so I am
looking for a way to prevent xterm from closing with killclient().

I have already looked for a solution in xterm, but there seems to be
none. IceWM provides a way to disable the close-button
(killclient-equivalent in WIMP..) for certain clients, so I thought
maybe it is easy to do that in dwm, too. I have looked at the source,
but I don't know anything about X programming and have to admit I don't
know if I would have to disable the XKillClient or the XSendEvent part
to do it properly.

Any hints?

Thanks in advance

Martin
Received on Wed Apr 09 2008 - 16:04:20 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:32:41 UTC