window: don't touch geometry restore in Window::sendToOutput

It's no longer used by checkWorkspacePosition
This commit is contained in:
Xaver Hugl 2022-08-28 17:54:24 +02:00
parent e195d42916
commit 5a3321be89

View file

@ -3942,16 +3942,8 @@ void Window::sendToOutput(Output *newOutput)
if (isFullScreen()) {
updateGeometryRestoresForFullscreen(newOutput);
checkWorkspacePosition(oldGeom);
} else {
// align geom_restore - checkWorkspacePosition operates on it
setGeometryRestore(moveResizeGeometry());
checkWorkspacePosition(oldGeom);
// re-align geom_restore to constrained geometry
setGeometryRestore(moveResizeGeometry());
}
checkWorkspacePosition(oldGeom);
// finally reset special states
// NOTICE that MaximizeRestore/QuickTileFlag::None checks are required.
// eg. setting QuickTileFlag::None would break maximization