diff --git a/effects/fade/package/contents/code/main.js b/effects/fade/package/contents/code/main.js --- a/effects/fade/package/contents/code/main.js +++ b/effects/fade/package/contents/code/main.js @@ -18,17 +18,24 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . *********************************************************************/ + +var blacklist = [ + "ksmserver ksmserver", + "ksplashqml ksplashqml", + "ksplashsimple ksplashsimple", + "ksplashx ksplashx" +]; + function isFadeWindow(w) { + if (blacklist.indexOf(w.windowClass) != -1) { + return false; + } if (w.deleted && effect.isGrabbed(w, Effect.WindowClosedGrabRole)) { return false; } else if (!w.deleted && effect.isGrabbed(w, Effect.WindowAddedGrabRole)) { return false; } - return w.onCurrentDesktop && !isLoginWindow(w) && !w.desktopWindow && !w.utility && !w.minimized; -} - -function isLoginWindow(w) { - return w.windowClass == "ksplashx ksplashx" || w.windowClass == "ksplashsimple ksplashsimple" || w.windowClass == "ksplashqml ksplashqml"; + return w.onCurrentDesktop && !w.desktopWindow && !w.utility && !w.minimized; } var fadeInTime, fadeOutTime, fadeWindows;