minor iconify/deiconify fix (previous commit broke w2k plugin)

svn path=/trunk/kdebase/kwin/; revision=77557
This commit is contained in:
Matthias Ettrich 2001-01-12 01:20:07 +00:00
parent 33f78a855b
commit cf23bd927c

View file

@ -1566,8 +1566,8 @@ void Client::show()
{
if ( isIconified() && ( !isTransient() || mainClient() == this ) )
animateIconifyOrDeiconify( FALSE );
QWidget::show();
setMappingState( NormalState );
QWidget::show();
windowWrapper()->map();
}
@ -1701,13 +1701,13 @@ void Client::iconify()
hide();
return;
}
setMappingState( IconicState );
Events::raise( Events::Iconify );
if ( (!isTransient() || mainClient() == this ) && isVisible() )
animateIconifyOrDeiconify( TRUE );
hide();
setMappingState( IconicState );
workspace()->iconifyOrDeiconifyTransientsOf( this );
}