[45.4 regression] A key gets stuck when raising a non-locked screen shield
Affected version
- Your OS and version
Fedora 39 and 40
- Affected GNOME Shell version (see https://wiki.gnome.org/Schedule for currently supported versions)
gnome-shell-45.4-1.fc39
and gnome-shell-46~beta-6.fc40.x86_64
- Does this issue appear in XOrg and/or Wayland
Wayland affected, Xorg not tested
- Does this issue happen without extensions (please follow instructions below)
Yes
Bug summary
When the screen shield is down (the display is blanked), but it is not yet locked, then raising the shield (waking a screen) with a keyboard key makes the key stuck, i.e. pressed down, until a different key is pressed.
For example, waking the screen by tapping a
means that after the screen wakes up, you see aaaaaaaaaa.....
being typed indefinitely into your currently focused application. Or when waking the screen by tapping Ctrl
means that Ctrl
is (virtually) pressed down after the screen wakes up. So if you e.g. start using the mouse wheel in a web browser, instead of scrolling up and down, it zooms the page in and out instead.
This is a regression in gnome-shell 45.4. In 45.3, this bug is not present.
This bug is also present in gnome-shell 46 beta.
This bug can only be observed on bare metal. In virtual machines, it doesn't occur, at least in my testing.
Steps to reproduce
- Go to gnome-control-center -> Privacy -> Screen Lock
- Either disable Automatic Screen Lock, or set a non-zero Automatic Screen Lock Delay
- Focus some application where you can input text, i.e. gnome-text-editor
- Wait until your screen blanks, or alternatively make it happen with the command
xdg-screensaver activate
- Once your screen is blank (the shield screen activated), but before your screen gets locked (if you have a lock delay), press some letter, e.g.
a
- See that your screen wakes up and
aaaaaaa....
gets continuously written to your current app - This time start Firefox and open a web page
- Make the screen blank again
- Wake the screen with
Ctrl
- Scroll the mouse wheel and see that the webpage gets zoomed in/out (as if
Ctrl
was held) instead of scrolling up/down
What happened
The wakeup key gets stuck (pressed down) virtually
What did you expect to happen
The wakeup key shouldn't get stuck