screenShield: Switch lightboxes off before unlock transition

There is no point in animating a transition with fullscreen black
rectangles stacked on top, so switch them off before rather than
after the transition.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1158
This commit is contained in:
Florian Müllner 2020-04-01 14:48:10 +02:00 committed by Georges Basile Stavracas Neto
parent 7ff7fb5d3b
commit fb6ead2881

View File

@ -519,6 +519,9 @@ var ScreenShield = class {
this._isModal = false;
}
this._longLightbox.lightOff();
this._shortLightbox.lightOff();
this._lockDialogGroup.ease({
translation_y: -global.screen_height,
duration: Overview.ANIMATION_TIME,
@ -533,8 +536,6 @@ var ScreenShield = class {
this._dialog = null;
}
this._longLightbox.lightOff();
this._shortLightbox.lightOff();
this.actor.hide();
if (this._becameActiveId != 0) {