diff --git a/src/xdgshellwindow.cpp b/src/xdgshellwindow.cpp index e56d9a4885..f454ba8e32 100644 --- a/src/xdgshellwindow.cpp +++ b/src/xdgshellwindow.cpp @@ -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(lastAcknowledgedConfigure())) { fullscreen = configureEvent->states & XdgToplevelInterface::State::FullScreen; @@ -230,6 +226,7 @@ void XdgSurfaceWindow::handleNextWindowGeometry() } } + maybeUpdateMoveResizeGeometry(frameGeometry); updateGeometry(frameGeometry); }