A window which is overlapping screens has to be moved to a position on its screen even if it is the only window on the screen.

BUG: 203210

svn path=/trunk/KDE/kdebase/workspace/; revision=1024193
This commit is contained in:
Martin Gräßlin 2009-09-16 09:13:02 +00:00
parent 363986a030
commit 14e8285615

View file

@ -1107,8 +1107,11 @@ void PresentWindowsEffect::calculateWindowTransformationsNatural( EffectWindowLi
if( windowlist.count() == 1 )
{
// Just move the window to its original location to save time
m_motionManager.moveWindow( windowlist[0], windowlist[0]->geometry() );
return;
if( effects->clientArea( FullScreenArea, windowlist[0] ).contains( windowlist[0]->geometry() ) )
{
m_motionManager.moveWindow( windowlist[0], windowlist[0]->geometry() );
return;
}
}
// As we are using pseudo-random movement (See "slot") we need to make sure the list