[dev] [st] Handling of WM_DELETE_WINDOW atom

From: Ivan Kanakarakis <ivan.kanak_AT_gmail.com>
Date: Fri, 3 Feb 2012 16:26:05 +0200

Hi people,

It seems st won't terminate itself when WM_DELETE_WINDOW is sent by a wm.
You can observe that behavior when spawning st from another terminal and
then sending an event - XSendEvent() - with the WM_DELETE_WINDOW atom as
data.

Dwm - the killclient() function - "works around" that, by checking if the
client supports
such an atom handling, and if not it kills the client - XKillClient(dpy,
window).

Although the "work around" might be the right thing for such clients, I
believe
this should be fixed in st, and on receival of such message it should
gracefully
terminate.

Here [0] is what icccm says about deleting widows,
and here [1] [2] is what ewmh says about closing windows
in case you're looking into the standards.

[0]: http://tronche.com/gui/x/icccm/sec-4.html#s-4.2.8.1
[1]: http://standards.freedesktop.org/wm-spec/1.3/ar01s04.html#id3076012
[2]: http://standards.freedesktop.org/wm-spec/1.3/ar01s05.html#id3076744

Thanks,

-- 
*Ivan c00kiemon5ter V Kanakarakis *
*
*
Received on Fri Feb 03 2012 - 15:26:05 CET

This archive was generated by hypermail 2.3.0 : Fri Feb 03 2012 - 15:36:04 CET