mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
environment: Don't use actor if an ease callback destroys it
An actor ease callback could destroy the actor, in such case we should do not touch the actor anymore. So, before calling the callback, reset restore the easing state and don't perform any further action with it. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1507
This commit is contained in:
parent
9b7f228f8e
commit
826ac95726
1 changed files with 1 additions and 2 deletions
|
|
@ -117,6 +117,7 @@ function _easeActor(actor, params) {
|
|||
animatedProps.forEach(p => actor.remove_transition(p));
|
||||
|
||||
actor.set(params);
|
||||
actor.restore_easing_state();
|
||||
|
||||
if (callback) {
|
||||
let transition = actor.get_transition(animatedProps[0]);
|
||||
|
|
@ -126,8 +127,6 @@ function _easeActor(actor, params) {
|
|||
else
|
||||
callback(true);
|
||||
}
|
||||
|
||||
actor.restore_easing_state();
|
||||
}
|
||||
|
||||
function _easeActorProperty(actor, propName, target, params) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue