From a3dcecef7a08625eba87c064160a86810a5ae071 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 2 Sep 2022 11:46:35 +0300 Subject: [PATCH] Fix getting old screen area in Window::sendToOutput() Workspace::clientArea(clientAreaOpt, Window) uses the current output, while we need the current move resize output. --- src/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.cpp b/src/window.cpp index 26b77bf48b..fdc7e79911 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -3957,7 +3957,7 @@ void Window::sendToOutput(Output *newOutput) } const QRectF oldGeom = moveResizeGeometry(); - const QRectF oldScreenArea = workspace()->clientArea(MaximizeArea, this); + const QRectF oldScreenArea = workspace()->clientArea(MaximizeArea, this, moveResizeOutput()); const QRectF screenArea = workspace()->clientArea(MaximizeArea, this, newOutput); QRectF newGeom = moveToArea(oldGeom, oldScreenArea, screenArea);