Fix getting old screen area in Window::sendToOutput()

Workspace::clientArea(clientAreaOpt, Window) uses the current output,
while we need the current move resize output.
This commit is contained in:
Vlad Zahorodnii 2022-09-02 11:46:35 +03:00
parent 2f03d1f940
commit a3dcecef7a

View file

@ -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);