From bd683eb31b1b24f98e5e71170878300675315b3c Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Tue, 24 Feb 2009 13:30:44 +0000 Subject: [PATCH] More reliably fade the login splash window. No idea why this works, it just does. svn path=/trunk/KDE/kdebase/workspace/; revision=930873 --- effects/login/login.cpp | 13 +++---------- effects/login/login.h | 1 - 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/effects/login/login.cpp b/effects/login/login.cpp index 84a0c3550a..3bde11e4a7 100644 --- a/effects/login/login.cpp +++ b/effects/login/login.cpp @@ -76,20 +76,13 @@ void LoginEffect::postPaintScreen() effects->postPaintScreen(); } -void LoginEffect::windowAdded( EffectWindow* w ) +void LoginEffect::windowClosed( EffectWindow* w ) { if( isLoginSplash( w )) { + if( login_window ) + return; // We already have a window... should never happen. login_window = w; - progress = 1.0; - effects->addRepaintFull(); - } - } - -void LoginEffect::windowClosed( EffectWindow* w ) - { - if( w == login_window ) - { login_window->refWindow(); progress = 0.0; effects->addRepaintFull(); diff --git a/effects/login/login.h b/effects/login/login.h index 2a35b3fff6..42b59c1482 100644 --- a/effects/login/login.h +++ b/effects/login/login.h @@ -36,7 +36,6 @@ class LoginEffect virtual void postPaintScreen(); virtual void prePaintWindow( EffectWindow* w, WindowPrePaintData& data, int time ); virtual void paintWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data ); - virtual void windowAdded( EffectWindow* w ); virtual void windowClosed( EffectWindow* w ); private: bool isLoginSplash( EffectWindow* w );