From a541e25721ea65c2bff8ec4ab51bfe763e1662a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 6 Jan 2003 13:07:30 +0000 Subject: [PATCH] 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 --- client.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/client.cpp b/client.cpp index 72263169d4..3946ca026c 100644 --- a/client.cpp +++ b/client.cpp @@ -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 ); }