diff --git a/src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp b/src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp
index f5529813..2bc1e1c4 100644
--- a/src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp
+++ b/src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp
@@ -330,6 +330,10 @@ void QWaylandXdgSurface::applyConfigure()
if (m_toplevel)
m_toplevel->applyConfigure();
+ else {
+ QSize normalSize = m_window->window()->frameGeometry().size();
+ m_window->resizeFromApplyConfigure(m_normalSize);
+ }
m_configured = true;
ack_configure(m_pendingConfigureSerial);