Present Windows when there is only one window if this window is not on the current desktop.

BUG: 176499

svn path=/trunk/KDE/kdebase/workspace/; revision=890861
icc-effect-5.14.5
David Nadlinger 2008-11-30 14:51:32 +00:00
parent b9fd1e6d10
commit a875c6ea23
1 changed files with 2 additions and 1 deletions

View File

@ -1124,7 +1124,8 @@ void PresentWindowsEffect::setActive( bool active )
if( isSelectableWindow( w ))
m_motionManager.manage( w );
}
if( m_motionManager.managedWindows().count() < 2 )
if ( m_motionManager.managedWindows().isEmpty() ||
( ( m_motionManager.managedWindows().count() == 1 ) && m_motionManager.managedWindows().first()->isOnCurrentDesktop() ) )
{ // No point triggering if there is nothing to do
m_activated = false;
m_windowData.clear();