configurable minimize animation
svn path=/trunk/kdebase/kwin/; revision=68794
This commit is contained in:
parent
c88fc0bc77
commit
144182101d
1 changed files with 4 additions and 2 deletions
|
@ -1536,7 +1536,7 @@ void Client::move( int x, int y )
|
|||
*/
|
||||
void Client::show()
|
||||
{
|
||||
if ( isIconified() && !isTransient() )
|
||||
if ( isIconified() && ( !isTransient() || mainClient() == this ) )
|
||||
animateIconifyOrDeiconify( FALSE );
|
||||
QWidget::show();
|
||||
setMappingState( NormalState );
|
||||
|
@ -1676,7 +1676,7 @@ void Client::iconify()
|
|||
Events::raise( Events::Iconify );
|
||||
setMappingState( IconicState );
|
||||
|
||||
if ( !isTransient() && isVisible() )
|
||||
if ( (!isTransient() || mainClient() == this ) && isVisible() )
|
||||
animateIconifyOrDeiconify( TRUE );
|
||||
hide();
|
||||
|
||||
|
@ -2633,6 +2633,8 @@ void Client::animateIconifyOrDeiconify( bool iconify)
|
|||
{
|
||||
if ( blockAnimation )
|
||||
return;
|
||||
if ( !options->animateMinimize )
|
||||
return;
|
||||
// the function is a bit tricky since it will ensure that an
|
||||
// animation action needs always the same time regardless of the
|
||||
// performance of the machine or the X-Server.
|
||||
|
|
Loading…
Reference in a new issue