Prevent fade from affecting the login splash.

svn path=/trunk/KDE/kdebase/workspace/; revision=736675
icc-effect-5.14.5
Luboš Luňák 2007-11-14 14:55:23 +00:00
parent 21498ebad1
commit eb3b63cad8
2 changed files with 6 additions and 0 deletions

View File

@ -173,6 +173,11 @@ void FadeEffect::windowDeleted( EffectWindow* w )
bool FadeEffect::isFadeWindow( EffectWindow* w )
{
if( w->windowClass() == "ksplashx ksplashx"
|| w->windowClass() == "ksplashsimple ksplashsimple" )
{ // see login effect
return false;
}
return !w->isDesktop();
}

View File

@ -101,6 +101,7 @@ void LoginEffect::windowClosed( EffectWindow* w )
bool LoginEffect::isLoginSplash( EffectWindow* w )
{ // TODO there should be probably a better way (window type?)
// see also fade effect
if( w->windowClass() == "ksplashx ksplashx"
|| w->windowClass() == "ksplashsimple ksplashsimple" )
{