diff --git a/src/effects/kscreen/kscreen.cpp b/src/effects/kscreen/kscreen.cpp index 1b92efad4a..addfc52cc2 100644 --- a/src/effects/kscreen/kscreen.cpp +++ b/src/effects/kscreen/kscreen.cpp @@ -44,13 +44,15 @@ namespace KWin KscreenEffect::KscreenEffect() : Effect() - , m_atom(effects->announceSupportProperty("_KDE_KWIN_KSCREEN_SUPPORT", this)) + , m_atom(effects->waylandDisplay() ? XCB_ATOM_NONE : effects->announceSupportProperty("_KDE_KWIN_KSCREEN_SUPPORT", this)) { initConfig(); - connect(effects, &EffectsHandler::propertyNotify, this, &KscreenEffect::propertyNotify); - connect(effects, &EffectsHandler::xcbConnectionChanged, this, [this]() { - m_atom = effects->announceSupportProperty(QByteArrayLiteral("_KDE_KWIN_KSCREEN_SUPPORT"), this); - }); + if (!effects->waylandDisplay()) { + connect(effects, &EffectsHandler::propertyNotify, this, &KscreenEffect::propertyNotify); + connect(effects, &EffectsHandler::xcbConnectionChanged, this, [this]() { + m_atom = effects->announceSupportProperty(QByteArrayLiteral("_KDE_KWIN_KSCREEN_SUPPORT"), this); + }); + } reconfigure(ReconfigureAll); const QList screens = effects->screens();