more sane "delete" and "transdelete" events (where missing in many

cases)

svn path=/trunk/kdebase/kwin/; revision=68283
icc-effect-5.14.5
Matthias Ettrich 2000-10-19 15:21:00 +00:00
parent 256797f94f
commit cbfa5b50d1
1 changed files with 2 additions and 0 deletions

View File

@ -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 );
}