From 282d85e859f9b1c8d5b58222dc33cd9eeba21f4a Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 9 Sep 2009 08:31:42 +0000 Subject: [PATCH] proxy() not const remove the ignored windows that are deleted svn path=/trunk/KDE/kdebase/workspace/; revision=1021452 --- effects/fade/fade.cpp | 3 ++- effects/fade/fade.h | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 );