fix horizontal constrain in checkWorspacePosition

broke with fe51de8592f5777b57733f6e44924229c64cf80b - 2011...

REVIEW: 109680
remotes/origin/Plasma/5.0
Thomas Lübking 13 years ago
parent 07dfaf3c03
commit 29e5023cfb
  1. 2
      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);

Loading…
Cancel
Save