From c24a5f03959686cc72fdb3b83341529c2bee8568 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 21 Feb 2023 13:38:36 +0200 Subject: [PATCH] effects/glide: Fix transform Translation should be in logical pixels. BUG: 465849 --- src/effects/glide/glide.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/effects/glide/glide.cpp b/src/effects/glide/glide.cpp index 91f2565553..a17e30d75c 100644 --- a/src/effects/glide/glide.cpp +++ b/src/effects/glide/glide.cpp @@ -146,8 +146,7 @@ void GlideEffect::paintWindow(EffectWindow *w, int mask, QRegion region, WindowP data.setProjectionMatrix(invOffsetMatrix * oldProjMatrix); // Move the center of the window to the origin. - const QRectF screenGeo = scaledRect(effects->renderTargetRect(), scale); - const QPointF offset = screenGeo.center() - windowGeo.center(); + const QPointF offset = effects->renderTargetRect().center() - w->frameGeometry().center(); data.translate(offset.x(), offset.y()); const GlideParams params = w->isDeleted() ? m_outParams : m_inParams;