Commit 92c0171a authored by Marco Trevisan's avatar Marco Trevisan 🎺

lightbox: Show the actor before easing it

As per clutter optimizations in should_skip_implicit_transition() any
transition will be ignored if applied to an actor with unmapped clones.

Since we initialize the lightbox as hidden, when we use it standalone (as it
happens for the long fade in screenShield) the transition will be ignored.
This causes the lockscreen fade-out after the idle delay not to work, but
instead to have an apparently locked system that is instead not locked at
all.

So, just ensure that the lightbox actor is visible before applying to it any
transition.

Fixes #1683
parent 6a6d6648
Pipeline #120625 passed with stages
in 4 minutes and 53 seconds
......@@ -185,6 +185,8 @@ var Lightbox = class Lightbox {
this.emit('shown');
};
this.actor.show();
if (this._radialEffect) {
this.actor.ease_property(
'@effects.radial.brightness', VIGNETTE_BRIGHTNESS, easeProps);
......@@ -197,8 +199,6 @@ var Lightbox = class Lightbox {
onComplete
}));
}
this.actor.show();
}
hide(fadeOutTime) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment