When releasing a window, hide it before removing decoration, otherwise

it would be moved, causing ugly visual effect.

svn path=/trunk/kdebase/kwin/; revision=269901
This commit is contained in:
Luboš Luňák 2003-11-27 14:54:16 +00:00
parent 8f181d8b52
commit 358e648501

View file

@ -171,9 +171,12 @@ void Client::releaseWindow( bool on_shutdown )
if (moveResizeMode)
leaveMoveResize();
setModal( false ); // otherwise its mainwindow wouldn't get focus
hidden = true; // so that it's not considered visible anymore
hidden = true; // so that it's not considered visible anymore (can't use hideClient(), it would set flags)
if( !on_shutdown )
{
workspace()->clientHidden( this );
XUnmapWindow( qt_xdisplay(), window()); // destroying decoration would cause ugly visual effect
}
destroyDecoration();
cleanGrouping();
if( !on_shutdown )