kwin/autotests/integration/effects/scripts
Vlad Zagorodniy a281f2bce1 [effects/dialogparent] Fix flickering of parent windows
Summary:
If a modal window is closed and some alternative effect that animates
the disappearing of windows is enabled(e.g. the Glide effect, or the
Scale effect), the Dialog Parent effect can cause flickering of the
parent window because its animation duration doesn't match duration of
those alternative effects.

Also, if the Fade effect, the Glide effect, and the Scale effect are
disabled, the Dialog Parent will keep the parent window alive for no
good reason.

This change addresses that problem by adding keepAlive property to
`animate` function so scripted effects have more control over lifetime
of animated windows.

If both a modal window and its parent window are closed at the same time
(and there is no effect that animates the disappearing of windows), the
Dialog Parent will stop immediately(because windowDeleted will be
emitted right after windowClosed signal).

If both a modal window and its parent window are closed at the same time
(and there is effect that animates the disappearing of windows), the
Dialog Parent won't reference the latter window. Thus, it won't cause
flickering. I.e. it will "passively" animate parent windows.

BUG: 355036
FIXED-IN: 5.15.0

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: davidedmundson, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D14919
2018-10-10 18:34:12 +03:00
..
animationTest.js [scripting] Fix effect.animate() curve argument being actually used 2018-08-07 21:33:29 +01:00
animationTestMulti.js [scripting] Fix effect.animate() curve argument being actually used 2018-08-07 21:33:29 +01:00
effectContext.js [autotests] Unit most scripted effects API 2018-07-31 12:29:04 +01:00
effectsHandler.js [autotests] Test ScriptedEffects stackingOrder 2018-08-20 17:39:36 +01:00
fullScreenEffectTest.js [libkwineffects] Expose getting/setting activeFullScript to scripted effects 2018-10-04 00:57:44 +03:00
fullScreenEffectTestGlobal.js [scripting] Propagate fullScreenEffect from global settings to local settings 2018-10-10 18:27:52 +03:00
fullScreenEffectTestMulti.js [libkwineffects] Expose getting/setting activeFullScript to scripted effects 2018-10-04 00:57:44 +03:00
keepAliveTest.js [effects/dialogparent] Fix flickering of parent windows 2018-10-10 18:34:12 +03:00
keepAliveTestDontKeep.js [effects/dialogparent] Fix flickering of parent windows 2018-10-10 18:34:12 +03:00
screenEdgeTest.js [autotests] Unit most scripted effects API 2018-07-31 12:29:04 +01:00
screenEdgeTouchTest.js [autotests] Unit most scripted effects API 2018-07-31 12:29:04 +01:00
shortcutsTest.js [autotests] Unit most scripted effects API 2018-07-31 12:29:04 +01:00