Skip to content

Focus is temporarily lost when a new input device gets connected #4058

Open
@FreeFull

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions