kwinrules: Use KWindowSystem::isPlatformX11()

No need to use QX11Info if we already have KWindowSystem

Signed-off-by: Eike Hein <eike.hein@mbition.io>
This commit is contained in:
Kai Uwe Broulik 2022-02-22 16:40:13 +01:00 committed by Eike Hein
parent 7e16130eea
commit ad4bbba08a
2 changed files with 1 additions and 3 deletions

View file

@ -33,7 +33,6 @@ set(kwin_kcm_rules_XCB_LIBS
set(kcm_libs
Qt::Quick
Qt::QuickWidgets
Qt::X11Extras
KF5::KCMUtils
KF5::I18n

View file

@ -14,7 +14,6 @@
#include <QIcon>
#include <QQmlEngine>
#include <QtDBus>
#include <QX11Info>
#include <KColorSchemeManager>
#include <KConfig>
@ -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,