From 0fea8dc29f248ee493ddc949e5492e55a6072431 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 9 Aug 2010 14:51:34 +0000 Subject: [PATCH] Plasma::Theme::windowTranslucencyEnabled() caches the selection owner, should be faster than KWindowsystem::compositingActive() that doesn't svn path=/trunk/KDE/kdelibs/; revision=1161045 --- windoweffects.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/windoweffects.cpp b/windoweffects.cpp index 952a17ccc..b394cf482 100644 --- a/windoweffects.cpp +++ b/windoweffects.cpp @@ -22,6 +22,8 @@ #include +#include "theme.h" + #ifdef Q_WS_X11 #include #include @@ -41,7 +43,7 @@ namespace WindowEffects //FIXME: check if this works for any atom? bool isEffectAvailable(Effect effect) { - if (!KWindowSystem::compositingActive()) { + if (!Plasma::Theme::defaultTheme()->windowTranslucencyEnabled()) { return false; } #ifdef Q_WS_X11