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:
parent
81ffa5aec9
commit
fef063cf46
1 changed files with 3 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue