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:
parent
dd604c8e42
commit
a48c98f5ab
1 changed files with 1 additions and 1 deletions
|
@ -646,7 +646,7 @@ QSizeF fromXNative(const QSize &s)
|
||||||
|
|
||||||
static qreal nativeFloor(qreal value)
|
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)
|
QRectF nativeFloor(const QRectF &rect)
|
||||||
|
|
Loading…
Reference in a new issue