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) {