From ad4bbba08a21d574b033086ed59f3b1d633c34a0 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Tue, 22 Feb 2022 16:40:13 +0100 Subject: [PATCH] kwinrules: Use KWindowSystem::isPlatformX11() No need to use QX11Info if we already have KWindowSystem Signed-off-by: Eike Hein --- src/kcmkwin/kwinrules/CMakeLists.txt | 1 - src/kcmkwin/kwinrules/rulesmodel.cpp | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) 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,