[gnome-shell] ScreenShield: don't create an unlock dialog if the screen is not locked
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] ScreenShield: don't create an unlock dialog if the screen is not locked
- Date: Wed, 7 Aug 2013 08:34:03 +0000 (UTC)
commit 1b8580f12b4e704076388240409ca3ecdacd5288
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sat Jun 8 18:59:20 2013 +0200
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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 4776333..b5e2743 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]