placement: don't overwrite scheduled position change in cascadeIfCovering
As it used the frame geometry, the check for covering windows was sometimes wrong, and additionally overwrite changes to the window position Placement had made before, which could end up with the window origin wrongly not being put inside of the screen in some cases. CCBUG: 489500
This commit is contained in:
parent
02fbeeae78
commit
0e25405151
1 changed files with 1 additions and 1 deletions
|
@ -591,7 +591,7 @@ void Placement::cascadeIfCovering(Window *window, const QRectF &area)
|
|||
|
||||
VirtualDesktop *const desktop = window->isOnCurrentDesktop() ? VirtualDesktopManager::self()->currentDesktop() : window->desktops().front();
|
||||
|
||||
QRectF possibleGeo = window->frameGeometry();
|
||||
QRectF possibleGeo = window->moveResizeGeometry();
|
||||
bool noOverlap = false;
|
||||
|
||||
// cascade until confirmed no total overlap or not enough space to cascade
|
||||
|
|
Loading…
Reference in a new issue