From cda254530dd185685634b876a298429b2b21e3c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 13 Jun 2008 09:35:57 +0000 Subject: [PATCH] Inactive windows can be moved/resized too. BUG: 163927 svn path=/trunk/KDE/kdebase/workspace/; revision=820132 --- effects/maketransparent.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/effects/maketransparent.cpp b/effects/maketransparent.cpp index 8fb9b388d2..37b330ab68 100644 --- a/effects/maketransparent.cpp +++ b/effects/maketransparent.cpp @@ -126,25 +126,22 @@ void MakeTransparentEffect::paintWindow( EffectWindow* w, int mask, QRegion regi data.opacity *= dialogs; // Handling moving and resizing - if( moveresize != 1.0 && !isInactive(w) && !w->isDesktop() && !w->isDock()) + if( moveresize != 1.0 && !w->isDesktop() && !w->isDock()) { double progress = moveresize_timeline.value(); if ( w->isUserMove() || w->isUserResize() ) { // Fading to translucent - if ( w == active ) + data.opacity *= (moveresize + ((1.0 - moveresize) * ( 1.0 - progress ))); + if (progress < 1.0 && progress > 0.0) { - data.opacity *= (moveresize + ((1.0 - moveresize) * ( 1.0 - progress ))); - if (progress < 1.0 && progress > 0.0) - { - w->addRepaintFull(); - if ( fadeout != w ) - fadeout = w; - } + w->addRepaintFull(); + if ( fadeout != w ) + fadeout = w; } } else { // Fading back to more opaque - if ( w == active && (w == fadeout) && !w->isUserMove() && !w->isUserResize() ) + if( w == fadeout && !w->isUserMove() && !w->isUserResize() ) { data.opacity *= (moveresize + ((1.0 - moveresize) * (progress))); if ( progress == 1.0 || progress == 0.0)