fix: Fix the problem of rotating the screen in full-screen state and maximizing the state after exiting full-screen.

This commit is contained in:
jiya dong 2021-12-13 16:21:05 +08:00 committed by jiya dong
parent eaa2f538e3
commit fed45422cf

View file

@ -3348,6 +3348,7 @@ void AbstractClient::checkWorkspacePosition(QRect oldGeometry, QRect oldClientGe
oldClientGeometry = oldGeometry.adjusted(border[Left], border[Top], -border[Right], -border[Bottom]);
if (isFullScreen()) {
moveResize(workspace()->clientArea(FullScreenArea, this, fullscreenGeometryRestore().center()));
updateGeometryRestoresForFullscreen(kwinApp()->platform()->outputAt(newGeom.center()));
return;
}