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:
parent
0230949b08
commit
5e53bd4d57
@ -61,7 +61,7 @@ ThemePrivate::ThemePrivate(QObject *parent)
|
|||||||
cachesToDiscard(NoCache),
|
cachesToDiscard(NoCache),
|
||||||
locolor(false),
|
locolor(false),
|
||||||
compositingActive(KWindowSystem::self()->compositingActive()),
|
compositingActive(KWindowSystem::self()->compositingActive()),
|
||||||
blurActive(false),
|
blurActive(KWindowEffects::isEffectAvailable(KWindowEffects::BlurBehind)),
|
||||||
isDefault(true),
|
isDefault(true),
|
||||||
useGlobal(true),
|
useGlobal(true),
|
||||||
hasWallpapers(false),
|
hasWallpapers(false),
|
||||||
@ -275,7 +275,7 @@ QString ThemePrivate::findInTheme(const QString &image, const QString &theme, bo
|
|||||||
type = QStringLiteral("/locolor/");
|
type = QStringLiteral("/locolor/");
|
||||||
} else if (!compositingActive) {
|
} else if (!compositingActive) {
|
||||||
type = QStringLiteral("/opaque/");
|
type = QStringLiteral("/opaque/");
|
||||||
} else if (KWindowEffects::isEffectAvailable(KWindowEffects::BlurBehind)) {
|
} else if (blurActive) {
|
||||||
type = QStringLiteral("/translucent/");
|
type = QStringLiteral("/translucent/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user