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

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