[gnome-shell] loginDialog: Push a modal for LOCK_SCREEN



commit 589e6c29f36bb9f014995a30b6699e27877e556d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Jul 27 08:18:51 2014 -0400

    loginDialog: Push a modal for LOCK_SCREEN
    
    So that we're in the correct keybinding mode.

 js/gdm/loginDialog.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index 6ea04ba..cbb5721 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -926,6 +926,8 @@ const LoginDialog = new Lang.Class({
         this.actor.show();
         this.actor.opacity = 0;
 
+        Main.pushModal(this.actor, { keybindingMode: Shell.KeyBindingMode.LOGIN_SCREEN });
+
         Tweener.addTween(this.actor,
                          { opacity: 255,
                            time: 1,
@@ -935,6 +937,7 @@ const LoginDialog = new Lang.Class({
     },
 
     close: function() {
+        Main.popModal(this.actor);
         Main.ctrlAltTabManager.removeGroup(this.actor);
     },
 


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