diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-02 07:11:13 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-02 07:11:13 +0000 |
commit | 4671d4f870417e2e0f6b0b4fadfa31570c7752fb (patch) | |
tree | e230ed83ee4a856befa7d96addd3d34d78a958b1 /0001-screenShield-unblank-when-inserting-smartcard.patch | |
parent | ede92676c7c3a698398455318cc45011057260d2 (diff) |
automatic import of gnome-shellopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to '0001-screenShield-unblank-when-inserting-smartcard.patch')
-rw-r--r-- | 0001-screenShield-unblank-when-inserting-smartcard.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/0001-screenShield-unblank-when-inserting-smartcard.patch b/0001-screenShield-unblank-when-inserting-smartcard.patch new file mode 100644 index 0000000..3a1ac18 --- /dev/null +++ b/0001-screenShield-unblank-when-inserting-smartcard.patch @@ -0,0 +1,33 @@ +From 1e4e9248ef6bcdd95ec3b91c8c8e94c4587a876b Mon Sep 17 00:00:00 2001 +From: Ray Strode <rstrode@redhat.com> +Date: Fri, 3 Jul 2015 13:54:36 -0400 +Subject: [PATCH] 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 9a64fc32c..bc1a0fba7 100644 +--- a/js/ui/screenShield.js ++++ b/js/ui/screenShield.js +@@ -85,8 +85,10 @@ var ScreenShield = 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._activateDialog(); ++ } + }); + + this._oVirtCredentialsManager = OVirt.getOVirtCredentialsManager(); +-- +2.31.1 + |