From 64ab03402bd74f8b3122c34acd11fd268509f23b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 28 Apr 2005 09:47:57 +0000 Subject: [PATCH] When removing window, set it first to withdrawn state, then start cleaning it up. CCBUG: 103301 svn path=/trunk/kdebase/kwin/; revision=408336 --- client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index d8d61c5a8a..61c70db1b8 100644 --- a/client.cpp +++ b/client.cpp @@ -182,6 +182,7 @@ void Client::releaseWindow( bool on_shutdown ) leaveMoveResize(); finishWindowRules(); ++block_geometry; + setMappingState( WithdrawnState ); setModal( false ); // otherwise its mainwindow wouldn't get focus hidden = true; // so that it's not considered visible anymore (can't use hideClient(), it would set flags) if( !on_shutdown ) @@ -214,7 +215,6 @@ void Client::releaseWindow( bool on_shutdown ) // may do map+unmap before we initially map the window by calling rawShow() from manage(). XUnmapWindow( qt_xdisplay(), client ); } - setMappingState( WithdrawnState ); // after all is done, tell the app client = None; XDestroyWindow( qt_xdisplay(), wrapper ); wrapper = None;