From 848b2a936c21d0f36bbb9395cee89dfe68c7a771 Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Thu, 27 Nov 2008 14:56:00 +0000 Subject: [PATCH] Fix bug where if the user filters to only a single single in the natural layout there is no motion dynamics applied to it. svn path=/trunk/KDE/kdebase/workspace/; revision=889761 --- effects/presentwindows.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/effects/presentwindows.cpp b/effects/presentwindows.cpp index c4fca01339..9ddb1750e2 100644 --- a/effects/presentwindows.cpp +++ b/effects/presentwindows.cpp @@ -740,9 +740,9 @@ void PresentWindowsEffect::calculateWindowTransformationsKompose( EffectWindowLi void PresentWindowsEffect::calculateWindowTransformationsNatural( EffectWindowList windowlist, int screen ) { if( windowlist.count() == 1 ) - { // No idea why this is needed but if there is only one window on a Xinerama screen - // then the window is scaled into nothingness at (0,0) if its position isn't reset. - m_motionManager.reset( windowlist[0] ); + { // We can't use the algorithm as it scales the window into nothingness + // Instead just move the window to its original location + m_motionManager.moveWindow( windowlist[0], windowlist[0]->geometry() ); return; }