kwin: bugfix blur effect

This commit fixes the bug, that the blur texture cache is not marked invalid
when the related XProperty changes.

BUG: 283818
master
Philipp Knechtges 13 years ago
parent 8f81339bca
commit b6c27a17b0

@ -130,8 +130,13 @@ void BlurEffect::slotWindowDeleted(EffectWindow *w)
void BlurEffect::slotPropertyNotify(EffectWindow *w, long atom)
{
if (w && atom == net_wm_blur_region)
if (w && atom == net_wm_blur_region) {
updateBlurRegion(w);
if (windows.contains(w)) {
const QRect screen(0, 0, displayWidth(), displayHeight());
windows[w].damagedRegion = expand(blurRegion(w).translated(w->pos())) & screen;
}
}
}
bool BlurEffect::enabledByDefault()

Loading…
Cancel
Save