diff --git a/src/kcmkwin/kwinscreenedges/main.cpp b/src/kcmkwin/kwinscreenedges/main.cpp index 2b2662dec1..9b44d48abc 100644 --- a/src/kcmkwin/kwinscreenedges/main.cpp +++ b/src/kcmkwin/kwinscreenedges/main.cpp @@ -161,7 +161,7 @@ void KWinScreenEdgesConfig::monitorInit() const auto scripts = KPackage::PackageLoader::self()->listPackages(QStringLiteral("KWin/Script"), scriptFolder); for (const KPluginMetaData &script : scripts) { - if (script.value(QStringLiteral("X-KWin-Border-Activate")) != true) { + if (script.value(QStringLiteral("X-KWin-Border-Activate"), false) != true) { continue; } diff --git a/src/kcmkwin/kwinscreenedges/touch.cpp b/src/kcmkwin/kwinscreenedges/touch.cpp index 2eb56668e4..4967353264 100644 --- a/src/kcmkwin/kwinscreenedges/touch.cpp +++ b/src/kcmkwin/kwinscreenedges/touch.cpp @@ -158,7 +158,7 @@ void KWinScreenEdgesConfig::monitorInit() const auto scripts = KPackage::PackageLoader::self()->listPackages(QStringLiteral("KWin/Script"), scriptFolder); for (const KPluginMetaData &script : scripts) { - if (script.value(QStringLiteral("X-KWin-Border-Activate")) != true) { + if (script.value(QStringLiteral("X-KWin-Border-Activate"), false) != true) { continue; }