Move request_features call out of KCM
This commit is contained in:
parent
9bb523d211
commit
e5fded03ef
|
|
@ -114,6 +114,16 @@ namespace KWin
|
|||
BreezyDesktopEffect::BreezyDesktopEffect()
|
||||
{
|
||||
qCCritical(KWIN_XR) << "\t\t\tBreezy - constructor";
|
||||
|
||||
// safe to request on each load, acts as a no-op if already present
|
||||
{
|
||||
QJsonObject flags;
|
||||
QJsonArray requested;
|
||||
requested.append(QStringLiteral("productivity_basic"));
|
||||
flags.insert(QStringLiteral("request_features"), requested);
|
||||
XRDriverIPC::instance().writeControlFlags(flags);
|
||||
}
|
||||
|
||||
qmlRegisterUncreatableType<BreezyDesktopEffect>("org.kde.kwin.effect.breezy_desktop", 1, 0, "BreezyDesktopEffect", QStringLiteral("BreezyDesktop cannot be created in QML"));
|
||||
|
||||
setupGlobalShortcut(
|
||||
|
|
|
|||
|
|
@ -204,15 +204,6 @@ BreezyDesktopEffectConfig::BreezyDesktopEffectConfig(QObject *parent, const KPlu
|
|||
ui.setupUi(widget());
|
||||
addConfig(BreezyDesktopConfig::self(), widget());
|
||||
|
||||
// safe to request on each load, acts as a no-op if already present
|
||||
{
|
||||
QJsonObject flags;
|
||||
QJsonArray requested;
|
||||
requested.append(QStringLiteral("productivity_basic"));
|
||||
flags.insert(QStringLiteral("request_features"), requested);
|
||||
XRDriverIPC::instance().writeControlFlags(flags);
|
||||
}
|
||||
|
||||
// Advanced tab: measurement units selector (stored as "cm" or "in")
|
||||
if (ui.comboMeasurementUnits) {
|
||||
ui.comboMeasurementUnits->clear();
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 60b417baa5721496a3a39d4929460575f2479838
|
||||
Subproject commit f0f38b980fd7c4d52b426cabd6e103244364e5dc
|
||||
Loading…
Reference in New Issue