From 5a3321be890fd7bba2b390a67ae3bffee62b1f2b Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Sun, 28 Aug 2022 17:54:24 +0200 Subject: [PATCH] window: don't touch geometry restore in Window::sendToOutput It's no longer used by checkWorkspacePosition --- src/window.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/window.cpp b/src/window.cpp index 5171e63346..9be30bc568 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -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