Open
Description
When an input device gets plugged in, the currently active window loses focus for a short moment. This is particularly problematic with Xwayland, since it seems Xwayland sends one last keypressed event after the keyrelease, resulting in stuck keys. I have tested the issue using Minecraft and Sunvox; When the issue occurs, the keys appear to be stuck until pressed again. I originally hit the issue due to a flaky connection to my laptop's USB webcam (which exposes an input device), but I can also reproduce it by plugging in a USB keyboard. The issue does not occur under rootston or Weston.
$ swaymsg -t get_version
sway version 1.0-rc1-234-gb2cfcebe (Apr 15 2019, branch 'master')
Output from xev when the bug gets triggered:
xev.txt
Output from weston-eventdemo when the bug gets triggered:
eventdemo.txt
Sway log:
swaylog.txt
Activity