diff --git a/autotests/integration/effects/scripted_effects_test.cpp b/autotests/integration/effects/scripted_effects_test.cpp index 97a9313a23..4e477b0aaf 100644 --- a/autotests/integration/effects/scripted_effects_test.cpp +++ b/autotests/integration/effects/scripted_effects_test.cpp @@ -360,6 +360,7 @@ void ScriptedEffectsTest::testFullScreenEffect_data() QTest::newRow("single") << "fullScreenEffectTest"; QTest::newRow("multi") << "fullScreenEffectTestMulti"; + QTest::newRow("global") << "fullScreenEffectTestGlobal"; } void ScriptedEffectsTest::testFullScreenEffect() diff --git a/autotests/integration/effects/scripts/fullScreenEffectTestGlobal.js b/autotests/integration/effects/scripts/fullScreenEffectTestGlobal.js new file mode 100644 index 0000000000..006e902c3a --- /dev/null +++ b/autotests/integration/effects/scripts/fullScreenEffectTestGlobal.js @@ -0,0 +1,21 @@ +effects['desktopChanged(int,int)'].connect(function(old, current) { + var stackingOrder = effects.stackingOrder; + for (var i=0; i animationSettings(QScriptContext *context, ScriptedEffe if (!(s.set & AnimationSettings::Delay)) { s.delay = settings.at(0).delay; } + if (!(s.set & AnimationSettings::FullScreen)) { + s.fullScreenEffect = settings.at(0).fullScreenEffect; + } s.metaData = 0; typedef QMap MetaTypeMap;