Fix minimize animation.

svn path=/trunk/KDE/kdebase/workspace/; revision=476610
This commit is contained in:
Luboš Luňák 2005-11-01 16:56:09 +00:00
parent 67ba695f34
commit 816c529a2c

View file

@ -562,14 +562,14 @@ void Client::minimize( bool avoid_animation )
if ( !isMinimizable() || isMinimized())
return;
minimized = true;
Notify::raise( Notify::Minimize );
// SELI mainClients().isEmpty() ??? - and in unminimize() too
if ( mainClients().isEmpty() && isOnCurrentDesktop() && isShown( true ) && !avoid_animation )
animateMinimizeOrUnminimize( true ); // was visible or shaded
minimized = true;
updateVisibility();
updateAllowedActions();
workspace()->updateMinimizedOfTransients( this );