From 9b2707d7772bceae892c022721d1f1857984432d Mon Sep 17 00:00:00 2001 From: okan Date: Sun, 19 May 2013 17:05:52 +0000 Subject: add support for _NET_CLOSE_WINDOW --- xevents.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xevents.c') diff --git a/xevents.c b/xevents.c index f3e7221..de6620a 100644 --- a/xevents.c +++ b/xevents.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: xevents.c,v 1.78 2013/05/19 17:03:55 okan Exp $ + * $OpenBSD: xevents.c,v 1.79 2013/05/19 17:05:52 okan Exp $ */ /* @@ -348,6 +348,9 @@ xev_handle_clientmessage(XEvent *ee) if (e->message_type == cwmh[WM_CHANGE_STATE].atom && e->format == 32 && e->data.l[0] == IconicState) client_hide(cc); + + if (e->message_type == ewmh[_NET_CLOSE_WINDOW].atom) + client_send_delete(cc); } static void -- cgit v1.2.3-2-gb3c3