From 9268e7b27cf3f20242dc180666bbaa5072ec662f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Sun, 15 Apr 2007 22:08:18 +0000 Subject: [PATCH] Don't reset hover value. svn path=/branches/work/kwin_composite/; revision=654366 --- effects/presentwindows.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/effects/presentwindows.cpp b/effects/presentwindows.cpp index 75395cace9..3493707bce 100644 --- a/effects/presentwindows.cpp +++ b/effects/presentwindows.cpp @@ -376,6 +376,12 @@ void PresentWindowsEffect::rearrangeWindows() (*it).old_area = (*it).area; (*it).old_scale = (*it).scale; } + // Initialize new entries + foreach( EffectWindow* w, windowlist ) + if( !mWindowData.contains( w )) + { + mWindowData[ w ].hover = 0; + } mRearranging = 0; // start animation again } @@ -625,7 +631,6 @@ void PresentWindowsEffect::calculateWindowTransformationsClosest(EffectWindowLis } (*it).area = geom; (*it).scale = scale; - (*it).hover = 0; } }