Remove the state flags from the window on withdraw too, and do so only

when really withdrawing the window.

svn path=/trunk/kdebase/kwin/; revision=197778
icc-effect-5.14.5
Luboš Luňák 2003-01-06 13:07:30 +00:00
parent 70784e0433
commit a541e25721
1 changed files with 8 additions and 3 deletions

View File

@ -1184,9 +1184,14 @@ void Client::withdraw()
Events::raise( Events::Delete );
// remove early from client list
workspace()->removeClient( this );
info->setDesktop( 0 );
desk = 0;
is_sticky_ = false;
if( !kapp->closingDown()) {
// only when the window is being unmapped, not when closing down KWin
// (NETWM sections 5.5,5.7)
info->setDesktop( 0 );
desk = 0;
is_sticky_ = false;
info->setState( 0, info->state()); // reset all state flags
}
releaseWindow(TRUE);
workspace()->destroyClient( this );
}