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:
parent
8f81339bca
commit
b6c27a17b0
1 changed files with 6 additions and 1 deletions
|
@ -130,8 +130,13 @@ void BlurEffect::slotWindowDeleted(EffectWindow *w)
|
||||||
|
|
||||||
void BlurEffect::slotPropertyNotify(EffectWindow *w, long atom)
|
void BlurEffect::slotPropertyNotify(EffectWindow *w, long atom)
|
||||||
{
|
{
|
||||||
if (w && atom == net_wm_blur_region)
|
if (w && atom == net_wm_blur_region) {
|
||||||
updateBlurRegion(w);
|
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()
|
bool BlurEffect::enabledByDefault()
|
||||||
|
|
Loading…
Reference in a new issue