From 29e5023cfb0875c42a7f3bea0205a00fe695bcd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sat, 23 Mar 2013 01:07:12 +0100 Subject: [PATCH] fix horizontal constrain in checkWorspacePosition broke with fe51de8592f5777b57733f6e44924229c64cf80b - 2011... REVIEW: 109680 --- geometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geometry.cpp b/geometry.cpp index 8845d1e509..ad8352e438 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -1207,7 +1207,7 @@ void Client::checkWorkspacePosition(QRect oldGeometry, int oldDesktop) newGeom.moveRight(qMin(rightMax - 1, screenArea.right())); // If the other side was inside make sure it still is afterwards (shrink appropriately) if (oldGeometry.x() >= oldLeftMax && newGeom.x() < leftMax) - newGeom.moveRight(qMin(rightMax - 1, screenArea.right())); + newGeom.setLeft(qMax(leftMax, screenArea.x())); } checkOffscreenPosition(&newGeom, screenArea);