[gnome-shell] screenShield: Delay destruction of unlock dialog



commit 114f6f577f58bb036896aaa249f8633ff011e393
Author: Florian MÃllner <fmuellner gnome org>
Date:   Wed Sep 19 04:34:49 2012 +0200

    screenShield: Delay destruction of unlock dialog
    
    While the unlock dialog is created early so that it appears below
    the shield while the curtain slides up, it is destroyed immediately
    when the shield slides back in.
    Keep it around until the shield is down instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684342

 js/ui/screenShield.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index c2e7cb6..96e2f80 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -648,9 +648,6 @@ const ScreenShield = new Lang.Class({
     },
 
     _onUnlockFailed: function() {
-        this._dialog.destroy();
-        this._dialog = null;
-
         this._resetLockScreen(true, false);
     },
 
@@ -701,6 +698,10 @@ const ScreenShield = new Lang.Class({
     },
 
     _lockScreenShown: function() {
+        if (this._dialog)
+            this._dialog.destroy();
+        this._dialog = null;
+
         if (this._arrowAnimationId)
             Mainloop.source_remove(this._arrowAnimationId);
         this._arrowAnimationId = Mainloop.timeout_add(6000, Lang.bind(this, this._animateArrows));



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