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
This commit is contained in:
Philipp Knechtges 2011-10-12 15:16:46 +02:00
parent 8f81339bca
commit b6c27a17b0

View file

@ -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()