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:
parent
7e16130eea
commit
ad4bbba08a
2 changed files with 1 additions and 3 deletions
|
@ -33,7 +33,6 @@ set(kwin_kcm_rules_XCB_LIBS
|
||||||
set(kcm_libs
|
set(kcm_libs
|
||||||
Qt::Quick
|
Qt::Quick
|
||||||
Qt::QuickWidgets
|
Qt::QuickWidgets
|
||||||
Qt::X11Extras
|
|
||||||
|
|
||||||
KF5::KCMUtils
|
KF5::KCMUtils
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
#include <QIcon>
|
#include <QIcon>
|
||||||
#include <QQmlEngine>
|
#include <QQmlEngine>
|
||||||
#include <QtDBus>
|
#include <QtDBus>
|
||||||
#include <QX11Info>
|
|
||||||
|
|
||||||
#include <KColorSchemeManager>
|
#include <KColorSchemeManager>
|
||||||
#include <KConfig>
|
#include <KConfig>
|
||||||
|
@ -435,7 +434,7 @@ void RulesModel::populateRuleList()
|
||||||
QIcon::fromTheme("resizerow")));
|
QIcon::fromTheme("resizerow")));
|
||||||
|
|
||||||
RuleItem *desktops;
|
RuleItem *desktops;
|
||||||
if (QX11Info::isPlatformX11()) {
|
if (KWindowSystem::isPlatformX11()) {
|
||||||
// Single selection of Virtual Desktop on X11
|
// Single selection of Virtual Desktop on X11
|
||||||
desktops = new RuleItem(QLatin1String("desktops"),
|
desktops = new RuleItem(QLatin1String("desktops"),
|
||||||
RulePolicy::SetRule, RuleItem::Option,
|
RulePolicy::SetRule, RuleItem::Option,
|
||||||
|
|
Loading…
Reference in a new issue