diff --git a/backends/drm/drm_backend.cpp b/backends/drm/drm_backend.cpp index 9f24f0ecad..ebc2f3722a 100644 --- a/backends/drm/drm_backend.cpp +++ b/backends/drm/drm_backend.cpp @@ -721,7 +721,7 @@ void DrmOutput::init(drmModeConnector *connector) if (!m_dpms.isNull()) { m_waylandOutput->setDpmsSupported(true); m_waylandOutput->setDpmsMode(toWaylandDpmsMode(m_dpmsMode)); - connect(m_waylandOutput, &KWayland::Server::OutputInterface::dpmsModeRequested, this, + connect(m_waylandOutput.data(), &KWayland::Server::OutputInterface::dpmsModeRequested, this, [this] (KWayland::Server::OutputInterface::DpmsMode mode) { setDpms(fromWaylandDpmsMode(mode)); }, Qt::QueuedConnection