diff --git a/wayland_server.cpp b/wayland_server.cpp
index 91cc6e6df9..57ed89f0e7 100644
--- a/wayland_server.cpp
+++ b/wayland_server.cpp
@@ -44,7 +44,7 @@ along with this program. If not, see .
#include
#include
#include
-#include
+#include
#include
#include
#include
@@ -357,7 +357,7 @@ bool WaylandServer::init(const QByteArray &socketName, InitializationFlags flags
m_idle->create();
auto idleInhibition = new IdleInhibition(m_idle);
connect(this, &WaylandServer::shellClientAdded, idleInhibition, &IdleInhibition::registerClient);
- m_display->createIdleInhibitManager(IdleInhibitManagerInterfaceVersion::UnstableV1, m_display)->create();
+ m_display->createIdleInhibitManagerV1(m_display);
m_plasmaShell = m_display->createPlasmaShell(m_display);
m_plasmaShell->create();
connect(m_plasmaShell, &PlasmaShellInterface::surfaceCreated,