Changeset View
Changeset View
Standalone View
Standalone View
effects/blur/blur.cpp
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Line(s) | |||||
113 | { | 113 | { | ||
114 | Q_UNUSED(flags) | 114 | Q_UNUSED(flags) | ||
115 | 115 | | |||
116 | BlurConfig::self()->read(); | 116 | BlurConfig::self()->read(); | ||
117 | int radius = qBound(2, BlurConfig::blurRadius(), 14); | 117 | int radius = qBound(2, BlurConfig::blurRadius(), 14); | ||
118 | if (shader) | 118 | if (shader) | ||
119 | shader->setRadius(radius); | 119 | shader->setRadius(radius); | ||
120 | 120 | | |||
121 | m_shouldCache = BlurConfig::cacheTexture(); | 121 | m_shouldCache = effects->waylandDisplay() ? false : BlurConfig::cacheTexture(); | ||
122 | 122 | | |||
123 | windows.clear(); | 123 | windows.clear(); | ||
124 | 124 | | |||
125 | if (!shader || !shader->isValid()) { | 125 | if (!shader || !shader->isValid()) { | ||
126 | effects->removeSupportProperty(s_blurAtomName, this); | 126 | effects->removeSupportProperty(s_blurAtomName, this); | ||
127 | delete m_blurManager; | 127 | delete m_blurManager; | ||
128 | m_blurManager = nullptr; | 128 | m_blurManager = nullptr; | ||
129 | } | 129 | } | ||
▲ Show 20 Lines • Show All 655 Lines • Show Last 20 Lines |