From d5a2c639a0b1a56bc92f05011afe2e1de67d4f8d Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Wed, 2 Nov 2022 17:23:56 +0100 Subject: [PATCH] window: fix checkWorkspacePosition moveRight/Bottom With QRectF, moveRight and moveBottom have an effective offset of 1 vs QRect --- src/window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window.cpp b/src/window.cpp index 04c808a6f9..c88d969a6d 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -4132,10 +4132,10 @@ void Window::checkWorkspacePosition(QRectF oldGeometry, const VirtualDesktop *ol newGeom.moveTop(qMax(topMax, screenArea.y())); } if (save[Right] || keep[Right]) { - newGeom.moveRight(qMin(rightMax, screenArea.right())); + newGeom.moveRight(qMin(rightMax, screenArea.right()) + 1); } if (save[Bottom] || keep[Bottom]) { - newGeom.moveBottom(qMin(bottomMax, screenArea.bottom())); + newGeom.moveBottom(qMin(bottomMax, screenArea.bottom()) + 1); } if (oldGeometry.x() >= oldLeftMax && newGeom.x() < leftMax) {