From 34acf422acc04d2af8f4b3754a786969000fd364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 3 Jan 2008 19:51:22 +0000 Subject: [PATCH] Put transformWindowDamage() back. BUG: 154714 svn path=/trunk/KDE/kdebase/workspace/; revision=756797 --- effects/shadow.cpp | 8 ++++++++ effects/shadow.h | 1 + 2 files changed, 9 insertions(+) diff --git a/effects/shadow.cpp b/effects/shadow.cpp index 20e2fa2d73..be016fe431 100644 --- a/effects/shadow.cpp +++ b/effects/shadow.cpp @@ -109,6 +109,14 @@ void ShadowEffect::drawWindow( EffectWindow* w, int mask, QRegion region, Window effects->drawWindow( w, mask, region, data ); } +QRect ShadowEffect::transformWindowDamage( EffectWindow* w, const QRect& r ) + { + if( !useShadow( w )) + return effects->transformWindowDamage( w, r ); + QRect r2 = r | shadowRectangle( r ); + return effects->transformWindowDamage( w, r2 ); + } + void ShadowEffect::windowClosed( EffectWindow* c ) { effects->addRepaint( shadowRectangle( c->geometry() )); diff --git a/effects/shadow.h b/effects/shadow.h index f3a54d8739..84c63c855a 100644 --- a/effects/shadow.h +++ b/effects/shadow.h @@ -38,6 +38,7 @@ class ShadowEffect virtual void drawWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data ); virtual void paintScreen( int mask, QRegion region, ScreenPaintData& data ); virtual void windowClosed( EffectWindow* c ); + virtual QRect transformWindowDamage( EffectWindow* w, const QRect& r ); private: void drawShadow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data, bool clip ); void addQuadVertices(QVector& verts, float x1, float y1, float x2, float y2) const;