On Saturday 27 June 2015 17:49:22 Barry Scott wrote: > On Friday 26 June 2015 21:22:45 Thomas Lübking wrote: > > On Freitag, 26. Juni 2015 20:23:44 CEST, Barry Scott wrote: > > > do you want this raised as a KDE bug on against Fedora for tracking? > > > > https://bugs.kde.org/show_bug.cgi?id=342929 > > Thanks Thomas, > > I see that the bug is unconfirmed after 5 months. Given that this bug is > present on both of my Fedora 22 systems I can confirm it exist. >
I'm using the source for the current Fedora 22 stable which is plasma- desktop-5.3.1-5.fc22.src.rpm I need to research more about XI2 but have gotten as far as seeing that the code in plasma-desktop-5.3.1/kcms/input/mouse.cpp does nothing for the reverseScrollDirection case. MouseSettings::apply() (starts at line 705) the code of interest is at line 758. This code loops over all devices looking for a pointer device that has the EVDEV_PROP_WHEEL property. My mouse does not have this property but it does have a wheel that generates button 4 or button 5 depending on direction of rotation. So the loop ends up doing nothing at all. At least for kmail, firefox, libreoffice and Calliga words what works is to swap buttons 4 and 5. This does not fix konsole. But I notice that left-handed has code to swap buttons 1 and 3 but that does not show up in xinput get-button-map 8 output. I guess that there must be other code expected to implement the left-right swap, is that a responsibility of Qt? Here is xinput output showing the world according to X11. $ xinput list ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Microsoft Compact Optical Mouse 500 id=8 [slave pointer (2)] ⎜ ↳ Microsoft Comfort Curve Keyboard 3000 id=10 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Power Button id=6 [slave keyboard (3)] ↳ Power Button id=7 [slave keyboard (3)] ↳ Microsoft Comfort Curve Keyboard 3000 id=9 [slave keyboard (3)] ↳ Eee PC WMI hotkeys id=11 [slave keyboard (3)] $ xinput list 8 Microsoft Compact Optical Mouse 500 id=8 [slave pointer (2)] Reporting 7 classes: Class originated from: 8. Type: XIButtonClass Buttons supported: 7 Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Right" Button state: Class originated from: 8. Type: XIValuatorClass Detail for Valuator 0: Label: Rel X Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: relative Class originated from: 8. Type: XIValuatorClass Detail for Valuator 1: Label: Rel Y Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: relative Class originated from: 8. Type: XIValuatorClass Detail for Valuator 2: Label: Rel Horiz Scroll Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: relative Class originated from: 8. Type: XIValuatorClass Detail for Valuator 3: Label: Rel Vert Scroll Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: relative Class originated from: 8. Type: XIScrollClass Scroll info for Valuator 2 type: 2 (horizontal) increment: 15.000000 flags: 0x0 Class originated from: 8. Type: XIScrollClass Scroll info for Valuator 3 type: 1 (vertical) increment: 15.000000 flags: 0x0 $ xinput list-props 8 Device 'Microsoft Compact Optical Mouse 500': Device Enabled (150): 1 Coordinate Transformation Matrix (152): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 libinput Accel Speed (284): 0.000000 libinput Accel Speed Default (285): 0.000000 libinput Natural Scrolling Enabled (286): 0 libinput Natural Scrolling Enabled Default (287): 0 libinput Send Events Modes Available (269): 1, 0 libinput Send Events Mode Enabled (270): 0, 0 libinput Send Events Mode Enabled Default (271): 0, 0 libinput Left Handed Enabled (288): 0 libinput Left Handed Enabled Default (289): 0 libinput Scroll Methods Available (290): 0, 0, 1 libinput Scroll Method Enabled (291): 0, 0, 0 libinput Scroll Method Enabled Default (292): 0, 0, 0 libinput Button Scrolling Button (293): 2 libinput Button Scrolling Button Default (294): 274 libinput Middle Emulation Enabled (295): 0 libinput Middle Emulation Enabled Default (296): 0 Device Node (272): "/dev/input/event4" Device Product ID (273): 1118, 1847 Barry >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<