Bug 1306365

Summary: [gtk3] inverse effect of mouse wheel on vertical scroll bar inside a virtual machine under GNOME on Wayland host session
Product: [Fedora] Fedora Reporter: Joachim Frieben <jfrieben>
Component: gtk3Assignee: Matthias Clasen <mclasen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: cosimo.cecchi, fmuellner, mclasen, otaylor, rauter.gabriel
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gtk3-3.20.4-1.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-13 18:07:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Wayland: fix up/down mix up in discrete events (from gtk-3-20 branch)) none

Description Joachim Frieben 2016-02-10 16:42:38 UTC
Description of problem:
For a fully updated Fedora development (rawhide) system, choosing the (default) GNOME (on Wayland) host session has the effect that scrolling up- or downward with the mouse wheel in a virtual machine run in GNOME Boxes is inverted with respect to a GNOME on Xorg host session.

Version-Release number of selected component (if applicable):
gnome-shell-3.19.4-2.fc24

How reproducible:
Always

Steps to Reproduce:
1. Start GNOME on Wayland host session.
1. Run a Fedora 23 or 24 client session inside GNOME Boxes.
2. Scroll up- or downward with the mouse wheel in some GTK-based application like GNOME Terminal or Firefox inside the virtual machine.

Actual results:
Scrolling downward makes the scroll bar scroll upward and vice versa.

Expected results:
Scrolling downward makes the scroll bar scroll downward and vice versa.

Additional info:
- Choosing a GNOME on Xorg host session restores the customary behaviour.
- The type of the client session (GNOME on Wayland/Xorg) has no influence.

Comment 1 Jan Kurik 2016-02-24 14:28:44 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase

Comment 2 Gabriel Rauter 2016-04-04 15:09:32 UTC
I can confirm this is also happening on arch linux, also hapening when accessing the same qemu:///session with virt-manager and also happening when starting a KDE guest session.

Comment 3 Joachim Frieben 2016-05-03 18:58:16 UTC
Issue is still present for gnome-shell-3.20.1-1.fc24. For the time being, enabling "natural scrolling" in gnome-control-center presents a workaround for restoring the correct direction.

Comment 4 Gabriel Rauter 2016-05-04 08:33:26 UTC
Check https://bugzilla.gnome.org/show_bug.cgi?id=764601 for gnome-boxes bug.

Comment 5 Joachim Frieben 2016-05-04 11:21:29 UTC
Created attachment 1153806 [details]
Wayland: fix up/down mix up in discrete events (from gtk-3-20 branch))

Patch from https://github.com/GNOME/gtk/commit/a537bdc1fe4d4323b9a0c39b23cb15633eeff64c which fixes the inverse scroll direction of mouse-wheel events in a GNOME on Wayland host session.

Comment 6 Joachim Frieben 2016-05-04 11:23:18 UTC
Issue is fixed upstream in the gtk-3-20 branch and will be included in the upcoming release gtk+ 3.20.4.