Blame SOURCES/0001-screenShield-unblank-when-inserting-smartcard.patch

35159f
From cacce594f07295bb1b9e0685913a287e3cea2453 Mon Sep 17 00:00:00 2001
35159f
From: Ray Strode <rstrode@redhat.com>
35159f
Date: Fri, 3 Jul 2015 13:54:36 -0400
35159f
Subject: [PATCH] screenShield: unblank when inserting smartcard
35159f
35159f
If a user inserts the smartcard when the screen is locked/blanked
35159f
we should ask them their pin right away.
35159f
35159f
At the moment they have to wiggle the mouse or do some other
35159f
action to get the screen to unblank.
35159f
---
35159f
 js/ui/screenShield.js | 4 +++-
35159f
 1 file changed, 3 insertions(+), 1 deletion(-)
35159f
35159f
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
35159f
index a005a206b..cd38f11fc 100644
35159f
--- a/js/ui/screenShield.js
35159f
+++ b/js/ui/screenShield.js
35159f
@@ -513,8 +513,10 @@ var ScreenShield = class {
35159f
         this._smartcardManager = SmartcardManager.getSmartcardManager();
35159f
         this._smartcardManager.connect('smartcard-inserted',
35159f
                                        (manager, token) => {
35159f
-                                           if (this._isLocked && token.UsedToLogin)
35159f
+                                           if (this._isLocked && token.UsedToLogin) {
35159f
+                                               this._wakeUpScreen();
35159f
                                                this._liftShield(true, 0);
35159f
+                                           }
35159f
                                        });
35159f
 
35159f
         this._oVirtCredentialsManager = OVirt.getOVirtCredentialsManager();
35159f
-- 
35159f
2.21.0
35159f