Don't ask KWindowEffects for blur repeatedly since we track it ourselves anyway

It might not have caught up yet when we decide to nuke the cache, resulting in
the translucent graphics staying when disabling blur or switching to XRender.

Changelog: Fix Plasma popups being hard to read tue to translucent background

REVIEW: 122676
BUG: 344179
This commit is contained in:
Kai Uwe Broulik 2015-02-23 21:24:12 +01:00
parent 0230949b08
commit 5e53bd4d57

View File

@ -61,7 +61,7 @@ ThemePrivate::ThemePrivate(QObject *parent)
cachesToDiscard(NoCache),
locolor(false),
compositingActive(KWindowSystem::self()->compositingActive()),
blurActive(false),
blurActive(KWindowEffects::isEffectAvailable(KWindowEffects::BlurBehind)),
isDefault(true),
useGlobal(true),
hasWallpapers(false),
@ -275,7 +275,7 @@ QString ThemePrivate::findInTheme(const QString &image, const QString &theme, bo
type = QStringLiteral("/locolor/");
} else if (!compositingActive) {
type = QStringLiteral("/opaque/");
} else if (KWindowEffects::isEffectAvailable(KWindowEffects::BlurBehind)) {
} else if (blurActive) {
type = QStringLiteral("/translucent/");
}