From a2590164368fc28100a4475644f2d55827de3e7b Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 22 May 2013 12:06:11 -0400 Subject: [PATCH] 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 file changed, 8 insertions(+), 6 deletions(-) diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index cfd55b95a..48cfaa604 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) {