[Firefox on Wayland] When Firefox is switched by Alt+Tab, ALT remains pressed for mouse scroll events
When Firefox is switched by Alt+Tab, ALT remains pressed for mouse scroll event. That causes regression on background scrolling when history is scrolled instead of content (https://bugzilla.redhat.com/show_bug.cgi?id=1650051)
There's a minimal testcase attached:
Reproduction steps:
- Build
- Run some application, terminal for instance
- Run testcase under wayland, make it focused
- Scroll by mouse wheel, see the printed modifiers (0x10 in my case)
- Change focus to the app from 2) by ALT+TAB
- Go by mouse cursor on inactive/unfocused area of the testcase, scroll by mouse wheel, see 0x18 modifiers printed (ALT key pressed)
- Repeat the step 5) by mouse click
- Repeat step 6, see only 0x10 modifier printed (without ALT)