From 1b8580f12b4e704076388240409ca3ecdacd5288 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Sat, 8 Jun 2013 18:59:20 +0200 Subject: [PATCH] ScreenShield: don't create an unlock dialog if the screen is not locked Creating the unlock dialog starts the GDM conversation and activates the fingerprint sensors, so don't do it unless necessary. https://bugzilla.gnome.org/show_bug.cgi?id=697833 --- js/ui/screenShield.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index 4776333ff..b5e274347 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -622,7 +622,8 @@ const ScreenShield = new Lang.Class({ if (!isEnter && !(GLib.unichar_isprint(unichar) || symbol == Clutter.KEY_Escape)) return false; - if (this._ensureUnlockDialog(true, true) && + if (this._isLocked && + this._ensureUnlockDialog(true, true) && GLib.unichar_isgraph(unichar)) this._dialog.addCharacter(unichar);