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:
parent
2f03d1f940
commit
a3dcecef7a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue