xcbutils: fix nativeFloor

The floor was not done in the X-native coordinate space but with double
scaling

BUG: 459373
This commit is contained in:
Xaver Hugl 2023-05-10 12:28:24 +02:00
parent dd604c8e42
commit a48c98f5ab

View file

@ -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)