Ensure to highlight the correct desktop back in if the desktop grid was

deactivated by pressing ESC or by using an electric border.

svn path=/trunk/KDE/kdebase/workspace/; revision=922144
This commit is contained in:
Lucas Murray 2009-02-06 14:31:54 +00:00
parent 81ffa5aec9
commit fef063cf46

View file

@ -724,6 +724,8 @@ void DesktopGridEffect::setActive( bool active )
activated = active;
if( activated && timeline.value() == 0 )
setup();
if( !activated )
setHighlightedDesktop( effects->currentDesktop() ); // Ensure selected desktop is highlighted
effects->addRepaintFull();
}
@ -739,7 +741,7 @@ void DesktopGridEffect::setup()
hoverTimeline.clear();
for( int i = 0; i < effects->numberOfDesktops(); i++ )
{
TimeLine newTimeline( animationTime( 250 ));
TimeLine newTimeline( animationTime( zoomDuration ));
newTimeline.setCurveShape( TimeLine::EaseInOutCurve );
hoverTimeline.append( newTimeline );
}