From eb3b63cad8b48143cb044717a7ba9feeb523a8ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 14 Nov 2007 14:55:23 +0000 Subject: [PATCH] Prevent fade from affecting the login splash. svn path=/trunk/KDE/kdebase/workspace/; revision=736675 --- effects/fade.cpp | 5 +++++ effects/login.cpp | 1 + 2 files changed, 6 insertions(+) diff --git a/effects/fade.cpp b/effects/fade.cpp index 90853828a5..2ef4b3eb29 100644 --- a/effects/fade.cpp +++ b/effects/fade.cpp @@ -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(); } diff --git a/effects/login.cpp b/effects/login.cpp index 889da2fcc5..a32c913ba4 100644 --- a/effects/login.cpp +++ b/effects/login.cpp @@ -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" ) {