Commit a3dcecef authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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

Workspace::clientArea(clientAreaOpt, Window) uses the current output,
while we need the current move resize output.
parent 2f03d1f9
Pipeline #226189 passed with stage
in 13 minutes and 6 seconds
......@@ -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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment