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