diff --git a/effects.cpp b/effects.cpp index 54a734fb75..208bed7c20 100644 --- a/effects.cpp +++ b/effects.cpp @@ -696,6 +696,11 @@ EffectWindowImpl::~EffectWindowImpl() { } +bool EffectWindowImpl::isPaintingEnabled() + { + return sceneWindow()->isPaintingEnabled(); + } + void EffectWindowImpl::enablePainting( int reason ) { sceneWindow()->enablePainting( reason ); diff --git a/effects.h b/effects.h index 007c349bf7..b3e07cb1a1 100644 --- a/effects.h +++ b/effects.h @@ -124,6 +124,7 @@ class EffectWindowImpl : public EffectWindow virtual void enablePainting( int reason ); virtual void disablePainting( int reason ); + virtual bool isPaintingEnabled(); virtual void addRepaint( const QRect& r ); virtual void addRepaint( int x, int y, int w, int h ); virtual void addRepaintFull(); diff --git a/lib/kwineffects.h b/lib/kwineffects.h index a9d3c416e9..3b51c0aecf 100644 --- a/lib/kwineffects.h +++ b/lib/kwineffects.h @@ -260,6 +260,7 @@ class KWIN_EXPORT EffectWindow virtual void enablePainting( int reason ) = 0; virtual void disablePainting( int reason ) = 0; + virtual bool isPaintingEnabled() = 0; virtual void addRepaint( const QRect& r ) = 0; virtual void addRepaint( int x, int y, int w, int h ) = 0; virtual void addRepaintFull() = 0;