Inactive windows can be moved/resized too.

BUG: 163927


svn path=/trunk/KDE/kdebase/workspace/; revision=820132
icc-effect-5.14.5
Luboš Luňák 2008-06-13 09:35:57 +00:00
parent 5b9980c4f2
commit cda254530d
1 changed files with 7 additions and 10 deletions

View File

@ -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)