Use geometryRestore() instead of geom_restory in Client::checkWorkspacePosition
Preparation for moving the implementation to AbstractClient.
This commit is contained in:
parent
28fe78a94f
commit
d1baa4d283
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue