Inactive windows can be moved/resized too.
BUG: 163927 svn path=/trunk/KDE/kdebase/workspace/; revision=820132
This commit is contained in:
parent
5b9980c4f2
commit
cda254530d
1 changed files with 7 additions and 10 deletions
|
@ -126,13 +126,11 @@ void MakeTransparentEffect::paintWindow( EffectWindow* w, int mask, QRegion regi
|
||||||
data.opacity *= dialogs;
|
data.opacity *= dialogs;
|
||||||
|
|
||||||
// Handling moving and resizing
|
// 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();
|
double progress = moveresize_timeline.value();
|
||||||
if ( w->isUserMove() || w->isUserResize() )
|
if ( w->isUserMove() || w->isUserResize() )
|
||||||
{ // Fading to translucent
|
{ // Fading to translucent
|
||||||
if ( w == active )
|
|
||||||
{
|
|
||||||
data.opacity *= (moveresize + ((1.0 - moveresize) * ( 1.0 - progress )));
|
data.opacity *= (moveresize + ((1.0 - moveresize) * ( 1.0 - progress )));
|
||||||
if (progress < 1.0 && progress > 0.0)
|
if (progress < 1.0 && progress > 0.0)
|
||||||
{
|
{
|
||||||
|
@ -141,10 +139,9 @@ void MakeTransparentEffect::paintWindow( EffectWindow* w, int mask, QRegion regi
|
||||||
fadeout = w;
|
fadeout = w;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{ // Fading back to more opaque
|
{ // 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)));
|
data.opacity *= (moveresize + ((1.0 - moveresize) * (progress)));
|
||||||
if ( progress == 1.0 || progress == 0.0)
|
if ( progress == 1.0 || progress == 0.0)
|
||||||
|
|
Loading…
Reference in a new issue