Also set geometry restore to the new screen if maximizing

This commit is contained in:
Xaver Hugl 2021-01-22 13:08:16 +01:00
parent fa92aef9a8
commit 66daa862c1

View file

@ -999,7 +999,7 @@ void AbstractClient::finishMoveResize(bool cancel)
}
checkScreen(); // needs to be done because clientFinishUserMovedResized has not yet re-activated online alignment
if (screen() != moveResizeStartScreen()) {
if (isFullScreen()) {
if (isFullScreen() || isElectricBorderMaximizing()) {
updateGeometryRestoresForFullscreen();
}
workspace()->sendClientToScreen(this, screen()); // checks rule validity