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
This commit is contained in:
parent
b001741634
commit
817d13d8c0
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue