commit be05a0ec2a26d01927d405b904206a9cfe550041
Author: qvint <dotqvint(a)gmail.com>
Date: Wed May 6 04:18:12 2020 +0300
Fix touchpad scrolling under XWayland
See
https://bugzilla.rpmfusion.org/show_bug.cgi?id=5621
...vert-b794998819088f76b4cf44c8db6940240c563cf4.patch | 18 ++++++++++++++++++
chromium-freeworld.spec | 2 ++
2 files changed, 20 insertions(+)
---
diff --git a/chromium-58.0.3029.96-revert-b794998819088f76b4cf44c8db6940240c563cf4.patch
b/chromium-58.0.3029.96-revert-b794998819088f76b4cf44c8db6940240c563cf4.patch
new file mode 100644
index 0000000..e5590b3
--- /dev/null
+++ b/chromium-58.0.3029.96-revert-b794998819088f76b4cf44c8db6940240c563cf4.patch
@@ -0,0 +1,18 @@
+--- a/ui/events/devices/x11/device_data_manager_x11.cc
++++ b/ui/events/devices/x11/device_data_manager_x11.cc
+@@ -782,15 +782,6 @@ void DeviceDataManagerX11::UpdateScrollC
+ DCHECK(deviceid >= 0 && deviceid < kMaxDeviceNum);
+ ScrollInfo& info = scroll_data_[deviceid];
+
+- bool legacy_scroll_available =
+- (scroll_class_info->flags & XIScrollFlagNoEmulation) == 0;
+- // If the device's highest resolution is lower than the resolution of xinput1
+- // then use xinput1's events instead (ie. don't configure smooth scrolling).
+- if (legacy_scroll_available &&
+- std::abs(scroll_class_info->increment) <= 1.0) {
+- return;
+- }
+-
+ switch (scroll_class_info->scroll_type) {
+ case XIScrollTypeVertical:
+ info.vertical.number = scroll_class_info->number;
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index d20f84b..078c2fe 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -223,6 +223,7 @@ Patch250: chromium-81-gcc-10.patch
# Fedora patches:
Patch300: chromium-71.0.3578.98-py2-bootstrap.patch
+Patch301:
chromium-58.0.3029.96-revert-b794998819088f76b4cf44c8db6940240c563cf4.patch
# RPM Fusion patches [free/chromium-freeworld]:
Patch400: chromium-enable-vaapi.patch
@@ -735,6 +736,7 @@ appstream-util validate-relax --nonet
"%{buildroot}%{_metainfodir}/%{name}.appda
%changelog
* Wed May 06 2020 qvint <dotqvint(a)gmail.com> - 81.0.4044.138-1
- Update to 81.0.4044.138
+- Fix touchpad scrolling under XWayland (rfbz#5621)
* Thu Apr 30 2020 qvint <dotqvint(a)gmail.com> - 81.0.4044.129-1
- Update to 81.0.4044.129