kwin/autotests/integration/effects/scripts/animationTest.js
Vlad Zahorodnii 2ff0fc26a4 Merge EffectWindow::{windowMinimized,windowUnminimized}
The main motivation is to match the Window API.
2023-11-21 18:20:02 +00:00

12 lines
357 B
JavaScript

effects.windowAdded.connect(function(w) {
w.anim1 = effect.animate(w, Effect.Scale, 100, 1.4, 0.2, 0, QEasingCurve.OutCubic);
sendTestResponse(typeof(w.anim1) == "number");
w.minimizedChanged.connect(() => {
if (w.minimized) {
retarget(w.anim1, 1.5, 200);
} else {
cancel(w.anim1);
}
});
});