From cbfa5b50d1e5835a97f1ab4c9247084fa0405425 Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Thu, 19 Oct 2000 15:21:00 +0000 Subject: [PATCH] more sane "delete" and "transdelete" events (where missing in many cases) svn path=/trunk/kdebase/kwin/; revision=68283 --- client.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client.cpp b/client.cpp index 69f2f15121..248f74d314 100644 --- a/client.cpp +++ b/client.cpp @@ -880,6 +880,7 @@ bool Client::unmapNotify( XUnmapEvent& e ) XEvent ev; if ( XCheckTypedWindowEvent (qt_xdisplay(), windowWrapper()->winId(), DestroyNotify, &ev) ){ + Events::raise( isTransient() ? Events::TransDelete : Events::Delete ); workspace()->destroyClient( this ); return TRUE; } @@ -1685,6 +1686,7 @@ void Client::closeWindow() else { // client will not react on wm_delete_window. We have not choice // but destroy his connection to the XServer. + Events::raise( isTransient() ? Events::TransDelete : Events::Delete ); XKillClient(qt_xdisplay(), win ); workspace()->destroyClient( this ); }