Xwayland scrolling
This issue occurs when a seat has one non-discrete and one discrete scrolling device (i.e. a laptop with trackpad and a clicking-wheel mouse connected to it). Under some condition (see repro below), clicks from the scrolling wheel are being skipped by xwayland, when scrolling direction is changed (i.e. ↑↑↓↑, where last two clicks are ignored by the application).
To reproduce:
- Run any wayland compositor with xwayland support on a laptop with mouse connected
- Start
xev
on it - Produce some scrolling via touchpad
- Now, scrolling with mouse will be skipped (see
xev
logs)
This issue is not reproducible on Xorg WM's, i.e. i3wm, so I might guess the bug is somewhere here: https://gitlab.freedesktop.org/xorg/xserver/-/blob/master/hw/xwayland/xwayland-input.c#L682-723