From d1baa4d2837a5353b2c53b10d473dc8ee46def1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 12 Oct 2015 11:34:09 +0200 Subject: [PATCH] Use geometryRestore() instead of geom_restory in Client::checkWorkspacePosition Preparation for moving the implementation to AbstractClient. --- geometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geometry.cpp b/geometry.cpp index 73e4a562cf..89327504cb 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -1106,12 +1106,12 @@ void Client::checkWorkspacePosition(QRect oldGeometry, int oldDesktop, QRect old int oldRightMax = oldScreenArea.x() + oldScreenArea.width(); int oldBottomMax = oldScreenArea.y() + oldScreenArea.height(); int oldLeftMax = oldScreenArea.x(); - const QRect screenArea = workspace()->clientArea(ScreenArea, geom_restore.center(), desktop()); + const QRect screenArea = workspace()->clientArea(ScreenArea, geometryRestore().center(), desktop()); int topMax = screenArea.y(); int rightMax = screenArea.x() + screenArea.width(); int bottomMax = screenArea.y() + screenArea.height(); int leftMax = screenArea.x(); - QRect newGeom = geom_restore; // geometry(); + QRect newGeom = geometryRestore(); // geometry(); QRect newClientGeom = newGeom.adjusted(border[Left], border[Top], -border[Right], -border[Bottom]); const QRect newGeomTall = QRect(newGeom.x(), 0, newGeom.width(), displayHeight()); // Full screen height const QRect newGeomWide = QRect(0, newGeom.y(), displayWidth(), newGeom.height()); // Full screen width