GNOME on Wayland does not dispatch uinput events
Affected version
GNOME 40
Bug summary
I made a script that emits keyboard events using UInput, and it worked perfecly in a Wayland session of GNOME 3.36 (Fedora 32). I skipped GNOME 3.38 so I don't know about the behaviour there, but now, on GNOME 40 (Fedora 34), my script does not work anymore on a Wayland session (using GNOME on Xorg works).
Steps to reproduce
- Make sure you have wrtie permissions on /dev/uinput
- Try to generate uinput events, such as the ones in the attached script, and move the focus to a different window
What happened
On a Xorg session, the uinput events are correctly generated and dispatched to the currently focused window. On a Wayland session, the uinput events are not dispatched to the currently focused window.
As I said, the uinput events were correctly dispatched on GNOME 3.36.
What did you expect to happen
I expected to have the currently focused window to receive the events generated by uinput on a Wayland session
Relevant logs, screenshots, screencasts etc.
I already reported this bug for GNOME Shell, but I don't know if the uinput handling is responsibility of GNOME Shell or Mutter.