diff --git a/src/utils/xcbutils.cpp b/src/utils/xcbutils.cpp index cea0ef7c89..9731f483c0 100644 --- a/src/utils/xcbutils.cpp +++ b/src/utils/xcbutils.cpp @@ -646,7 +646,7 @@ QSizeF fromXNative(const QSize &s) static qreal nativeFloor(qreal value) { - return std::floor(value / kwinApp()->xwaylandScale()) * kwinApp()->xwaylandScale(); + return std::floor(value * kwinApp()->xwaylandScale()) / kwinApp()->xwaylandScale(); } QRectF nativeFloor(const QRectF &rect)