From 207e78386af89c17650d0a85a20fadfbb02e48b3 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 17 Oct 2022 10:53:30 +0300 Subject: [PATCH] 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 --- src/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.cpp b/src/window.cpp index 44e5bd3ed3..5897f384a5 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1891,7 +1891,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());