Skip to content

SDL2 incorrect key behaviour under wayland #697

@Adriankhl

Description

@Adriankhl

OS: OpenSUSE Tumbleweed
Desktop environment: SwayWM

I believe this is a bug of SDL2 instead of Daemon, but I hope someone here could identify the bug and file a bug report to the SDL2 repo.

Under wayland (SDL_VIDEODRIVER=wayland), after switching to other windows and switch back to Unvanquished, the character won't move continuously when I keep pressing a movement key, such as W. Instead, a "key up" event is triggered shortly after the key is pressed.

The problem is fixed under xwayland (SDL_VIDEODRIVER=x11).

I tried to look into the source but I am not familiar enough with the engine and SDL2 so I cannot locate the exact problem.

Metadata

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