5d279a0ddd
Summary: Ready for QJSEngine port and upcoming other fixes. Split as it makes it easier to do any before/after testing. Test Plan: All tests pass with the current QScriptEngine Verified expected API against a wiki page and current code. Reviewers: #kwin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D14482
24 lines
590 B
JavaScript
24 lines
590 B
JavaScript
effects.windowAdded.connect(function(w) {
|
|
w.anim1 = animate({
|
|
window: w,
|
|
duration: 100,
|
|
animations: [{
|
|
type: Effect.Scale,
|
|
curve: Effect.GaussianCurve,
|
|
to: 1.4
|
|
}, {
|
|
type: Effect.Opacity,
|
|
curve: Effect.GaussianCurve,
|
|
to: 0.0
|
|
}]
|
|
});
|
|
sendTestResponse(typeof(w.anim1) == "object" && Array.isArray(w.anim1));
|
|
});
|
|
|
|
effects.windowUnminimized.connect(function(w) {
|
|
cancel(w.anim1);
|
|
});
|
|
|
|
effects.windowMinimized.connect(function(w) {
|
|
retarget(w.anim1, 1.5, 200);
|
|
});
|