diff --git a/tests/xdgtest.cpp b/tests/xdgtest.cpp --- a/tests/xdgtest.cpp +++ b/tests/xdgtest.cpp @@ -121,8 +121,16 @@ Q_ASSERT(m_surface); m_xdgShellSurface = m_xdgShell->createSurface(m_surface, this); Q_ASSERT(m_xdgShellSurface); - connect(m_xdgShellSurface, &XdgShellSurface::sizeChanged, this, &XdgTest::render); - render(); + connect(m_xdgShellSurface, &XdgShellSurface::configureRequested, this, [this](const QSize &size, KWayland::Client::XdgShellSurface::States states, int serial) { + Q_UNUSED(size); + Q_UNUSED(states); + m_xdgShellSurface->ackConfigure(serial); + render(); + }); + + m_xdgShellSurface->setTitle(QStringLiteral("Test Window")); + + m_surface->commit(); } ); connect(registry, &Registry::seatAnnounced, this,