GNOME Bugzilla – Bug 773328
screenShield: Only allow graphs to lift shield when locked
Last modified: 2016-10-24 17:13:54 UTC
Inspired by https://lists.fedoraproject.org/archives/list/desktop@lists.fedoraproject.org/message/624YVAYKJCFJ2W5HBK6JSJWBOKJQG44I/.
Created attachment 338202 [details] [review] screenShield: Only allow graphs to lift shield when locked Since commit 67615a0cbc, any printable key can be used to lift the screen shield rather than just escape/enter/space. While this is convenient for unlocking where the input is forwarded to the password entry, it is potentially dangerous when the screen is inactive but not locked: If the user types her password, the first character will lift the shield and the remaining input will go to the focused window. To prevent this from happening, only allow printable keys when the screen is actually locked and restrict the key presses that lift the shield to the original set of escape/enter/space otherwise.
Review of attachment 338202 [details] [review]: nice idea.
Attachment 338202 [details] pushed as 205880e - screenShield: Only allow graphs to lift shield when locked