diff --git a/src/kcmkwin/kwinrules/CMakeLists.txt b/src/kcmkwin/kwinrules/CMakeLists.txt index 7379bb41d1..d1e8c5d0de 100644 --- a/src/kcmkwin/kwinrules/CMakeLists.txt +++ b/src/kcmkwin/kwinrules/CMakeLists.txt @@ -33,7 +33,6 @@ set(kwin_kcm_rules_XCB_LIBS set(kcm_libs Qt::Quick Qt::QuickWidgets - Qt::X11Extras KF5::KCMUtils KF5::I18n diff --git a/src/kcmkwin/kwinrules/rulesmodel.cpp b/src/kcmkwin/kwinrules/rulesmodel.cpp index 8c09c86903..70b875b96a 100644 --- a/src/kcmkwin/kwinrules/rulesmodel.cpp +++ b/src/kcmkwin/kwinrules/rulesmodel.cpp @@ -14,7 +14,6 @@ #include #include #include -#include #include #include @@ -435,7 +434,7 @@ void RulesModel::populateRuleList() QIcon::fromTheme("resizerow"))); RuleItem *desktops; - if (QX11Info::isPlatformX11()) { + if (KWindowSystem::isPlatformX11()) { // Single selection of Virtual Desktop on X11 desktops = new RuleItem(QLatin1String("desktops"), RulePolicy::SetRule, RuleItem::Option,