Commit 44d3e436 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Fix resizing by dragging top-right window corner

The top-right corner case was overlooked when switching from QRect to
QRectF, which results in the window having wrong size.

BUG: 460501


(cherry picked from commit 207e7838)
parent 9fb5dbd3
Pipeline #249364 failed with stage
in 13 minutes and 57 seconds
......@@ -1892,7 +1892,7 @@ void Window::handleInteractiveMoveResize(int x, int y, int x_root, int y_root)
nextMoveResizeGeom = QRectF(QPointF(topleft.x(), orig.y()), QPointF(orig.right(), bottomright.y()));
break;
case Gravity::TopRight:
nextMoveResizeGeom = QRect(QPoint(orig.x(), topleft.y()), QPoint(bottomright.x(), orig.bottom()));
nextMoveResizeGeom = QRectF(QPointF(orig.x(), topleft.y()), QPointF(bottomright.x(), orig.bottom()));
break;
case Gravity::Top:
nextMoveResizeGeom = QRectF(QPointF(orig.left(), topleft.y()), orig.bottomRight());
......
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