From 14e8285615434798662d0071cb1903e5a8201a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 16 Sep 2009 09:13:02 +0000 Subject: [PATCH] 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 --- effects/presentwindows/presentwindows.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp index 25f44005c7..356b7ea4d2 100644 --- a/effects/presentwindows/presentwindows.cpp +++ b/effects/presentwindows/presentwindows.cpp @@ -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