X11: First mouse wheel event ignored after right click or Alt+Tab or Win key press
@kparal
Submitted by Kamil Páral Link to original bug (#750994)
Description
On X11, if you do a right mouse button click, the first mouse wheel event is ignored. The same happens when you press Alt+Tab, Win key or probably some other keys. Please see the attached video.
This does not happen on Wayland.
It happens only with gtk3 apps, tested with gedit and firefox (using gtk3 on Fedora 22). It does not happen with gtk2 apps (empathy, zim) or qt apps.
Reproducer:
- Open gedit, populate it with some text
- Verify that scrolling works as expected
- Do a right mouse click, either inside gedit, on its toolbar, or completely outside of its window, it doesn't matter
- You can do some more right or left mouse button clicks to cancel any context menus, etc
- Scroll up or down a single time (one notch) in gedit window - see that nothing happens
- Try to scroll again - this time it scrolls properly
I found this in Firefox, because I have a gesture mapped to right mouse click held + wheel up or down. And the first time I use this it never works, I have to repeat scrolling, which is quite confusing.
gtk3-3.16.3-1.fc22.x86_64 gnome-shell-3.16.2-1.fc22.x86_64 libinput-0.17.0-2.fc22.x86_64 xorg-x11-drv-libinput-0.10.0-5.fc22.x86_64 Fedora 22
Version: 3.16.x