More reliably fade the login splash window. No idea why this works, it

just does.

svn path=/trunk/KDE/kdebase/workspace/; revision=930873
This commit is contained in:
Lucas Murray 2009-02-24 13:30:44 +00:00
parent c016f07738
commit bd683eb31b
2 changed files with 3 additions and 11 deletions

View file

@ -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();

View file

@ -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 );