Commit ad4bbba0 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik Committed by Eike Hein
Browse files

kwinrules: Use KWindowSystem::isPlatformX11()



No need to use QX11Info if we already have KWindowSystem

Signed-off-by: default avatarEike Hein <eike.hein@mbition.io>
parent 7e16130e
Pipeline #141427 passed with stage
in 15 minutes and 5 seconds
......@@ -33,7 +33,6 @@ set(kwin_kcm_rules_XCB_LIBS
set(kcm_libs
Qt::Quick
Qt::QuickWidgets
Qt::X11Extras
KF5::KCMUtils
KF5::I18n
......
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment