From d42442b424c9b20939c6f36cc3cb606831ee8881 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 16 Jan 2023 19:59:30 +0200 Subject: [PATCH] effects: Fix a typo in RenderGeometry::appendWindowVertex() Only the y coord is scaled, but both x and y coords have to be scaled. --- src/libkwineffects/kwineffects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libkwineffects/kwineffects.cpp b/src/libkwineffects/kwineffects.cpp index ddf2674c40..61659289b6 100644 --- a/src/libkwineffects/kwineffects.cpp +++ b/src/libkwineffects/kwineffects.cpp @@ -1033,7 +1033,7 @@ void RenderGeometry::appendWindowVertex(const WindowVertex &windowVertex, qreal GLVertex2D glVertex; switch (m_vertexSnappingMode) { case VertexSnappingMode::None: - glVertex.position = QVector2D(windowVertex.x(), windowVertex.y() * deviceScale); + glVertex.position = QVector2D(windowVertex.x(), windowVertex.y()) * deviceScale; break; case VertexSnappingMode::Round: glVertex.position = roundVector(QVector2D(windowVertex.x(), windowVertex.y()) * deviceScale);