From 4cd5c2e60f4085e7139bf77382622be6b0663bb4 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 7 Feb 2019 11:16:34 -0500 Subject: [PATCH] loginDialog: reset auth prompt on vt switch before fade in At the moment, if a user switches to the login screen vt, the login screen fades in whatever was on screen prior, and then does a reset. It makes more sense to reset first, so we fade in what the user is going to interact with instead of what they interacted with before. --- js/gdm/loginDialog.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index bcf1902e2..431832b66 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -917,6 +917,7 @@ var LoginDialog = GObject.registerClass({ } _loginScreenSessionActivated() { + this._authPrompt.reset(); Tweener.addTween(this, { opacity: 255, time: _FADE_ANIMATION_TIME, @@ -929,11 +930,7 @@ var LoginDialog = GObject.registerClass({ children[i].opacity = this.opacity; } }, - onUpdateScope: this, - onComplete() { - this._authPrompt.reset(); - }, - onCompleteScope: this }); + onUpdateScope: this }); } _loginScreenSessionDeactivated() {