From 8468eeafdd8d4dfac0a61de077687b1961ff73da Mon Sep 17 00:00:00 2001 From: Mouse Zhang Date: Tue, 18 Oct 2022 16:35:53 +0800 Subject: [PATCH] effects/blur: Fix blur stripes when rounded window scaling BUG: 460412 --- src/effects/blur/blur.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/effects/blur/blur.cpp b/src/effects/blur/blur.cpp index 836a26953b..95a94373de 100644 --- a/src/effects/blur/blur.cpp +++ b/src/effects/blur/blur.cpp @@ -620,8 +620,8 @@ void BlurEffect::drawWindow(EffectWindow *w, int mask, const QRegion ®ion, Wi for (QRect r : shape) { r.moveTo(pt.x() + (r.x() - pt.x()) * data.xScale() + data.xTranslation(), pt.y() + (r.y() - pt.y()) * data.yScale() + data.yTranslation()); - r.setWidth(r.width() * data.xScale()); - r.setHeight(r.height() * data.yScale()); + r.setWidth(std::ceil(r.width() * data.xScale())); + r.setHeight(std::ceil(r.height() * data.yScale())); scaledShape |= r; } shape = scaledShape;