diff --git a/effects/fade/fade.cpp b/effects/fade/fade.cpp index 8d70266ff9..be3194fee9 100644 --- a/effects/fade/fade.cpp +++ b/effects/fade/fade.cpp @@ -33,7 +33,7 @@ FadeEffect::FadeEffect() reconfigure( ReconfigureAll ); } -const void* FadeEffect::proxy() const +void* FadeEffect::proxy() { return &m_proxy; } @@ -199,6 +199,7 @@ void FadeEffect::windowClosed( EffectWindow* w ) void FadeEffect::windowDeleted( EffectWindow* w ) { windows.remove( w ); + ignoredWindows.remove( w ); } void FadeEffect::setWindowIgnored( EffectWindow* w, bool ignore ) diff --git a/effects/fade/fade.h b/effects/fade/fade.h index f4dcdd6532..99e0daa64f 100644 --- a/effects/fade/fade.h +++ b/effects/fade/fade.h @@ -43,8 +43,7 @@ class FadeEffect virtual void windowAdded( EffectWindow* c ); virtual void windowClosed( EffectWindow* c ); virtual void windowDeleted( EffectWindow* c ); - virtual const void* proxy() const; - + virtual void* proxy(); void setWindowIgnored( EffectWindow* w, bool ignore ); bool isFadeWindow( EffectWindow* w );