Remove some unintuitive code in AbstractClient::setQuickTileMode()
After calling setMaximize(), the window should cover the maximize area.
The commit message of 516ea86341
doesn't
explain why only the y coordinate is enforced or why the x coordinate is
not enforced.
In order to make some sense of the code, this change removes the semi-
random enforcement of the y coordinate.
This commit is contained in:
parent
3ba316e6bf
commit
df913bdc50
1 changed files with 0 additions and 6 deletions
|
@ -3087,12 +3087,6 @@ void AbstractClient::setQuickTileMode(QuickTileMode mode, bool keyboard)
|
|||
QRect prev_geom_restore = geometryRestore(); // setMaximize() would set moveResizeGeom as geom_restore
|
||||
m_quickTileMode = int(QuickTileFlag::Maximize);
|
||||
setMaximize(true, true);
|
||||
QRect clientArea = workspace()->clientArea(MaximizeArea, this);
|
||||
if (moveResizeGeometry().top() != clientArea.top()) {
|
||||
QRect r(moveResizeGeometry());
|
||||
r.moveTop(clientArea.top());
|
||||
moveResize(r);
|
||||
}
|
||||
setGeometryRestore(prev_geom_restore);
|
||||
}
|
||||
doSetQuickTileMode();
|
||||
|
|
Loading…
Reference in a new issue