GNOME Bugzilla – Bug 788169
Login screen can't unlock by keyboard
Last modified: 2021-07-05 14:34:40 UTC
Reproduce process: 1. Create multi users on system. 2. Log in system as one user. 3. Wait more than 5 minutes(default idle time is 5 minutes). 4. Switch user. Click right side of top bar->user->Switch User 5. See lock screen, pressing ESC or ENTER key can't unlock it. If you use mouse to drag screen, you can unlock screen. Expect: Using keyboard can unlock login screen.
We can't unlock login screen, because window focus is not on screen shield, focus is on login dialog, screen shield can't receive keyboard message, so keyboard can't unlock login dialog. When switch user, system will switch TTY, at this time, screen shield don't get focus, login dialog get focus.
Created attachment 360413 [details] [review] Avoid loginDialog grab focus when locked
FYI, this bug was discovered by openQA and proposed patch is verified to fix the issue in openQA.
Review of attachment 360413 [details] [review]: This is probably fine, but I do wonder… why are we resetting the login screen before the screenshield is activated ? shouldn't we only be reseting it after the user hits a key or initiates a drag? I just wonder if a better fix is to make sure the authPrompt (and pam conversations?) aren't getting run unnecessarily.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/ Thank you for your understanding and your help.