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
This commit is contained in:
parent
b9fd1e6d10
commit
a875c6ea23
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue