~ubuntu-branches/ubuntu/hardy/kdebase-workspace/hardy-backports

« back to all changes in this revision

Viewing changes to kwin/effects/shadow.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-01-06 18:18:37 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080106181837-20dc8x9sru3seyup
Tags: 4:4.0.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
    effects->drawWindow( w, mask, region, data );
110
110
    }
111
111
 
 
112
QRect ShadowEffect::transformWindowDamage( EffectWindow* w, const QRect& r )
 
113
    {
 
114
    if( !useShadow( w ))
 
115
        return effects->transformWindowDamage( w, r );
 
116
    QRect r2 = r | shadowRectangle( r );
 
117
    return effects->transformWindowDamage( w, r2 );
 
118
    }
 
119
 
112
120
void ShadowEffect::windowClosed( EffectWindow* c )
113
121
    {
114
122
    effects->addRepaint( shadowRectangle( c->geometry() ));
116
124
 
117
125
bool ShadowEffect::useShadow( EffectWindow* w ) const
118
126
    {
119
 
    return !w->isDeleted() && !w->isDesktop() && !w->isDock();
 
127
    return !w->isDeleted() && !w->isDesktop() && !w->isDock() && !w->hasOwnShape();
120
128
    }
121
129
 
122
130
void ShadowEffect::addQuadVertices(QVector<float>& verts, float x1, float y1, float x2, float y2) const