[gnome-shell/gbsneto/new-lock-screen-part2: 23/45] screenShield: Always show session's unlock dialog
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/new-lock-screen-part2: 23/45] screenShield: Always show session's unlock dialog
- Date: Tue, 3 Dec 2019 20:47:23 +0000 (UTC)
commit b9c6b1fd6329fbeaf8ad27d25516be16b8fe2c52
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Nov 28 19:30:02 2019 -0300
screenShield: Always show session's unlock dialog
Instead of destroying the dialog when the screen shield is
visible, and creating it when lifting the shield, always show
the session's unlock dialog.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/872
js/ui/screenShield.js | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 216be0fc70..80e8ea1c0b 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -566,11 +566,6 @@ var ScreenShield = class {
}
_lockScreenShown(params) {
- if (this._dialog && !this._isGreeter) {
- this._dialog.destroy();
- this._dialog = null;
- }
-
let motionId = global.stage.connect('captured-event', (stage, event) => {
if (event.type() == Clutter.EventType.MOTION) {
this._cursorTracker.set_pointer_visible(true);
@@ -699,6 +694,8 @@ var ScreenShield = class {
if (this._activationTime == 0)
this._activationTime = GLib.get_monotonic_time();
+ this._ensureUnlockDialog(true);
+
this.actor.show();
if (Main.sessionMode.currentMode != 'unlock-dialog' &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]