[gnome-shell/wip/rstrode/rhel-8.0.0: 4/50] screenShield: unblank when inserting smartcard



commit 1e0ec69c41427ead67d9a8954353020fe6442847
Author: Ray Strode <rstrode redhat com>
Date:   Fri Jul 3 13:54:36 2015 -0400

    screenShield: unblank when inserting smartcard
    
    If a user inserts the smartcard when the screen is locked/blanked
    we should ask them their pin right away.
    
    At the moment they have to wiggle the mouse or do some other
    action to get the screen to unblank.

 js/ui/screenShield.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 2d8d9b3f6..ebba6c82a 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -515,8 +515,10 @@ var ScreenShield = new Lang.Class({
         this._smartcardManager = SmartcardManager.getSmartcardManager();
         this._smartcardManager.connect('smartcard-inserted',
                                        (manager, token) => {
-                                           if (this._isLocked && token.UsedToLogin)
+                                           if (this._isLocked && token.UsedToLogin) {
+                                               this._wakeUpScreen();
                                                this._liftShield(true, 0);
+                                           }
                                        });
 
         this._oVirtCredentialsManager = OVirt.getOVirtCredentialsManager();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]