[gnome-shell/wip/timed-login-fix: 282/284] loginDialog: reset auth prompt on vt switch before fade in



commit 4cd5c2e60f4085e7139bf77382622be6b0663bb4
Author: Ray Strode <rstrode redhat com>
Date:   Thu Feb 7 11:16:34 2019 -0500

    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() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]