From ff889337e2a9ffc51cc3cebcf468f9cb3fbf977a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Sun, 8 May 2011 12:04:00 +0200 Subject: [PATCH] kwin/blur: Use pos() instead of geometry().topLeft() --- effects/blur/blur.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/effects/blur/blur.cpp b/effects/blur/blur.cpp index 11de9fc780..b63286a347 100644 --- a/effects/blur/blur.cpp +++ b/effects/blur/blur.cpp @@ -255,7 +255,7 @@ void BlurEffect::prePaintScreen(ScreenPrePaintData &data, int time) if (r.isEmpty()) continue; - r = expand(r.translated(window->geometry().topLeft())); + r = expand(r.translated(window->pos())); if (r.intersects(paint)) break; } @@ -277,7 +277,7 @@ void BlurEffect::prePaintScreen(ScreenPrePaintData &data, int time) if (r.isEmpty()) continue; - r = expand(r.translated(window->geometry().topLeft())); + r = expand(r.translated(window->pos())); // We can't do a partial repaint of a blurred region if (r.intersects(data.paint)) { @@ -318,7 +318,7 @@ void BlurEffect::drawWindow(EffectWindow *w, int mask, QRegion region, WindowPai const QVariant forceBlur = w->data(WindowForceBlurRole); if ((!effects->activeFullScreenEffect() || (forceBlur.isValid() && forceBlur.toBool())) && hasAlpha && !w->isDesktop() && !transformed) - shape = blurRegion(w).translated(w->geometry().topLeft()) & screen; + shape = blurRegion(w).translated(w->pos()) & screen; if (valid && !shape.isEmpty() && region.intersects(shape.boundingRect())) { doBlur(shape, screen, data.opacity * data.contents_opacity);