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

Workspace::clientArea(clientAreaOpt, Window) uses the current output,
while we need the current move resize output.
master
Vlad Zahorodnii 2 years ago
parent 2f03d1f940
commit a3dcecef7a

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

Loading…
Cancel
Save