XdgSurfaceWindow: Always update move resize geometry

Since interactive move resize logic has changed, there is
no need to guard maybeUpdateMoveResizeGeometry anymore.

BUG: 483309
This commit is contained in:
Ser Freeman 2024-03-27 09:15:31 +05:00 committed by Vlad Zahorodnii
parent 7bb250826e
commit 298a8ca8c5

View file

@ -213,11 +213,7 @@ void XdgSurfaceWindow::handleNextWindowGeometry()
}
}
if (!isInteractiveMoveResize()) {
// Both the compositor and the client can change the window geometry. If the client
// sets a new window geometry, the compositor's move-resize geometry will be invalid.
maybeUpdateMoveResizeGeometry(frameGeometry);
} else if (isInteractiveMove()) {
if (isInteractiveMove()) {
bool fullscreen = isFullScreen();
if (const auto configureEvent = static_cast<XdgToplevelConfigure *>(lastAcknowledgedConfigure())) {
fullscreen = configureEvent->states & XdgToplevelInterface::State::FullScreen;
@ -230,6 +226,7 @@ void XdgSurfaceWindow::handleNextWindowGeometry()
}
}
maybeUpdateMoveResizeGeometry(frameGeometry);
updateGeometry(frameGeometry);
}