Commit 817d13d8 authored by Arjen Hiemstra's avatar Arjen Hiemstra Committed by Vlad Zahorodnii
Browse files

Ensure move() calls in placement move in integer values

Otherwise we run the risk of placing windows at floating coodinates,
which leads to interpolated rendering which doesn't look nice.

BUG: 457143
parent b0017416
Pipeline #231714 passed with stage
in 19 minutes and 59 seconds
......@@ -539,7 +539,7 @@ void Placement::placeUnderMouse(Window *c, const QRect &area, PlacementPolicy /*
QRectF geom = c->frameGeometry();
geom.moveCenter(Cursors::self()->mouse()->pos());
c->move(geom.topLeft());
c->move(geom.topLeft().toPoint());
c->keepInArea(area); // make sure it's kept inside workarea
}
......@@ -668,7 +668,7 @@ void Window::packTo(qreal left, qreal top)
workspace()->updateFocusMousePosition(Cursors::self()->mouse()->pos()); // may cause leave event;
const Output *oldOutput = moveResizeOutput();
move(QPointF(left, top));
move(QPoint(left, top));
if (moveResizeOutput() != oldOutput) {
workspace()->sendWindowToOutput(this, moveResizeOutput()); // checks rule validity
if (requestedMaximizeMode() != MaximizeRestore) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment