[gnome-shell] screenShield: Pop the modal immediately



commit a2590164368fc28100a4475644f2d55827de3e7b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed May 22 12:06:11 2013 -0400

    screenShield: Pop the modal immediately
    
    Allow people to start typing immediately after unlocking their
    session, rather than having to wait for a transition.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=700847

 js/ui/screenShield.js |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index cfd55b9..48cfaa6 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -1133,6 +1133,14 @@ const ScreenShield = new Lang.Class({
         if (Main.sessionMode.currentMode == 'unlock-dialog')
             Main.sessionMode.popMode('unlock-dialog');
 
+        if (this._dialog && !this._isGreeter)
+            this._dialog.popModal();
+
+        if (this._isModal) {
+            Main.popModal(this.actor);
+            this._isModal = false;
+        }
+
         Tweener.addTween(this._lockDialogGroup, {
             scale_x: 0,
             scale_y: 0,
@@ -1150,12 +1158,6 @@ const ScreenShield = new Lang.Class({
         }
 
         this._lightbox.hide();
-
-        if (this._isModal) {
-            Main.popModal(this.actor);
-            this._isModal = false;
-        }
-
         this.actor.hide();
 
         if (this._becameActiveId != 0) {


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