fix horizontal constrain in checkWorspacePosition

broke with fe51de8592f5777b57733f6e44924229c64cf80b - 2011...

REVIEW: 109680
This commit is contained in:
Thomas Lübking 2013-03-23 01:07:12 +01:00
parent 07dfaf3c03
commit 29e5023cfb

View file

@ -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);