Blame SOURCES/0001-loginDialog-Reset-auth-prompt-on-vt-switch-before-fa.patch

90c434
From 6d26b6f9f66e14843f175305441a2464dd255fd1 Mon Sep 17 00:00:00 2001
90c434
From: Ray Strode <rstrode@redhat.com>
90c434
Date: Mon, 27 Jul 2020 10:58:49 -0400
90c434
Subject: [PATCH] loginDialog: Reset auth prompt on vt switch before fade in
90c434
90c434
At the moment, if a user switches to the login screen vt,
90c434
the login screen fades in whatever was on screen prior, and
90c434
then does a reset.
90c434
90c434
It makes more sense to reset first, so we fade in what the
90c434
user is going to interact with instead of what they interacted
90c434
with before.
90c434
90c434
Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2997
90c434
---
90c434
 js/gdm/loginDialog.js | 10 ++++------
90c434
 1 file changed, 4 insertions(+), 6 deletions(-)
90c434
90c434
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
90c434
index 214c2f512..eb6846d5c 100644
90c434
--- a/js/gdm/loginDialog.js
90c434
+++ b/js/gdm/loginDialog.js
90c434
@@ -923,6 +923,9 @@ var LoginDialog = GObject.registerClass({
90c434
         if (this.opacity == 255 && this._authPrompt.verificationStatus == AuthPrompt.AuthPromptStatus.NOT_VERIFYING)
90c434
             return;
90c434
 
90c434
+        if (this._authPrompt.verificationStatus != AuthPrompt.AuthPromptStatus.NOT_VERIFYING)
90c434
+            this._authPrompt.reset();
90c434
+
90c434
         Tweener.addTween(this,
90c434
                          { opacity: 255,
90c434
                            time: _FADE_ANIMATION_TIME,
90c434
@@ -935,12 +938,7 @@ var LoginDialog = GObject.registerClass({
90c434
                                        children[i].opacity = this.opacity;
90c434
                                }
90c434
                            },
90c434
-                           onUpdateScope: this,
90c434
-                           onComplete() {
90c434
-                               if (this._authPrompt.verificationStatus != AuthPrompt.AuthPromptStatus.NOT_VERIFYING)
90c434
-                                   this._authPrompt.reset();
90c434
-                           },
90c434
-                           onCompleteScope: this });
90c434
+                           onUpdateScope: this });
90c434
     }
90c434
 
90c434
     _gotGreeterSessionProxy(proxy) {
90c434
-- 
90c434
2.32.0
90c434