Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/effects/slidingpopups_test.cpp
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | 61 | { | |||
---|---|---|---|---|---|
70 | // disable all effects - we don't want to have it interact with the rendering | 70 | // disable all effects - we don't want to have it interact with the rendering | ||
71 | auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | 71 | auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | ||
72 | KConfigGroup plugins(config, QStringLiteral("Plugins")); | 72 | KConfigGroup plugins(config, QStringLiteral("Plugins")); | ||
73 | ScriptedEffectLoader loader; | 73 | ScriptedEffectLoader loader; | ||
74 | const auto builtinNames = BuiltInEffects::availableEffectNames() << loader.listOfKnownEffects(); | 74 | const auto builtinNames = BuiltInEffects::availableEffectNames() << loader.listOfKnownEffects(); | ||
75 | for (QString name : builtinNames) { | 75 | for (QString name : builtinNames) { | ||
76 | plugins.writeEntry(name + QStringLiteral("Enabled"), false); | 76 | plugins.writeEntry(name + QStringLiteral("Enabled"), false); | ||
77 | } | 77 | } | ||
78 | KConfigGroup wobblyGroup = config->group("Effect-Wobbly"); | ||||
79 | wobblyGroup.writeEntry(QStringLiteral("Settings"), QStringLiteral("Custom")); | ||||
80 | wobblyGroup.writeEntry(QStringLiteral("OpenEffect"), true); | ||||
81 | wobblyGroup.writeEntry(QStringLiteral("CloseEffect"), true); | ||||
78 | 82 | | |||
79 | config->sync(); | 83 | config->sync(); | ||
80 | kwinApp()->setConfig(config); | 84 | kwinApp()->setConfig(config); | ||
81 | // TODO: make effects use KWin's config directly | | |||
82 | KSharedConfig::openConfig(QStringLiteral(KWIN_CONFIG), KConfig::NoGlobals)->group("Effect-Wobbly").writeEntry(QStringLiteral("Settings"), QStringLiteral("Custom")); | | |||
83 | KSharedConfig::openConfig(QStringLiteral(KWIN_CONFIG), KConfig::NoGlobals)->group("Effect-Wobbly").writeEntry(QStringLiteral("OpenEffect"), true); | | |||
84 | KSharedConfig::openConfig(QStringLiteral(KWIN_CONFIG), KConfig::NoGlobals)->group("Effect-Wobbly").writeEntry(QStringLiteral("CloseEffect"), true); | | |||
85 | 85 | | |||
86 | if (QFile::exists(QStringLiteral("/dev/dri/card0"))) { | 86 | if (QFile::exists(QStringLiteral("/dev/dri/card0"))) { | ||
87 | qputenv("KWIN_COMPOSE", QByteArrayLiteral("O2")); | 87 | qputenv("KWIN_COMPOSE", QByteArrayLiteral("O2")); | ||
88 | } | 88 | } | ||
89 | qputenv("KWIN_EFFECTS_FORCE_ANIMATIONS", "1"); | 89 | qputenv("KWIN_EFFECTS_FORCE_ANIMATIONS", "1"); | ||
90 | kwinApp()->start(); | 90 | kwinApp()->start(); | ||
91 | QVERIFY(workspaceCreatedSpy.wait()); | 91 | QVERIFY(workspaceCreatedSpy.wait()); | ||
92 | QVERIFY(Compositor::self()); | 92 | QVERIFY(Compositor::self()); | ||
▲ Show 20 Lines • Show All 283 Lines • Show Last 20 Lines |