Compare commits

..

No commits in common. "e241432d4f65a8d49e113229a5ba8003e2da2d18" and "a0434763340a3fd66442b75cd1d24a687ceb9ffa" have entirely different histories.

4 changed files with 13 additions and 24 deletions

View File

@ -1,4 +1,4 @@
From be5220b31e77b1a3f723def32f69e6aee9f3c7e9 Mon Sep 17 00:00:00 2001
From 41d20d35c1587f3de35acf47f926c97a30680978 Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu, 18 May 2017 14:45:18 +1000
Subject: [PATCH xf86-input-libinput] Add a DPIScaleFactor option as temporary
@ -11,13 +11,13 @@ https://bugzilla.redhat.com/show_bug.cgi?id=1413306
2 files changed, 47 insertions(+)
diff --git a/man/libinput.man b/man/libinput.man
index 7c83ccb..76572f8 100644
index 6ed4cdd..a5fa68e 100644
--- a/man/libinput.man
+++ b/man/libinput.man
@@ -454,6 +454,27 @@ This driver does not work with \fBOption \*qDevice\*q\fR set to an event
@@ -426,6 +426,27 @@ This driver does not work with \fBOption \*qDevice\*q\fR set to an event
node in \fI/dev/input/by-id\fR and \fI/dev/input/by-path\fR. This can be
usually be worked by using \fBSection \*qInputClass\*q\fR with an
appropriate \fBMatch*\fR statement in the xorg.conf(5).
appropriate \fBMatch*\fR statement in the __xconfigfile__(__filemansuffix__).
+.PP
+This driver does not know about the display pixel density and submits motion
+events assuming an approximate display density of 96dpi. On high-dpi
@ -43,10 +43,10 @@ index 7c83ccb..76572f8 100644
.SH AUTHORS
Peter Hutterer
diff --git a/src/xf86libinput.c b/src/xf86libinput.c
index 642f95f..cfee922 100644
index 00f1f2c..d571288 100644
--- a/src/xf86libinput.c
+++ b/src/xf86libinput.c
@@ -214,6 +214,8 @@ struct xf86libinput {
@@ -193,6 +193,8 @@ struct xf86libinput {
struct scale_factor {
double x, y;
} area_scale_factor;
@ -55,7 +55,7 @@ index 642f95f..cfee922 100644
};
enum event_handling {
@@ -1571,6 +1573,11 @@ xf86libinput_handle_motion(InputInfoPtr pInfo, struct libinput_event_pointer *ev
@@ -1472,6 +1474,11 @@ xf86libinput_handle_motion(InputInfoPtr pInfo, struct libinput_event_pointer *ev
x = libinput_event_pointer_get_dx(event);
y = libinput_event_pointer_get_dy(event);
@ -67,7 +67,7 @@ index 642f95f..cfee922 100644
valuator_mask_zero(mask);
{
@@ -3951,6 +3958,25 @@ xf86libinput_pre_init(InputDriverPtr drv,
@@ -3698,6 +3705,25 @@ xf86libinput_pre_init(InputDriverPtr drv,
xf86libinput_parse_options(pInfo, driver_data, device);
@ -94,4 +94,5 @@ index 642f95f..cfee922 100644
* this device, create a separate device instead */
if (!is_subdevice &&
--
2.40.0
2.27.0

Binary file not shown.

Binary file not shown.

View File

@ -2,12 +2,12 @@
%global driverdir %{moduledir}/input
Name: xorg-x11-drv-libinput
Version: 1.4.0
Version: 1.2.0
Release: 1
Summary: Xorg X11 libinput input driver
License: MIT
URL: https://www.x.org
Source0: https://www.x.org/archive/individual/driver/xf86-input-libinput-%{version}.tar.gz
Source0: https://www.x.org/archive/individual/driver/xf86-input-libinput-%{version}.tar.bz2
Source1: 71-libinput-overrides-wacom.conf
Patch0001: 0001-Add-a-DPIScaleFactor-option-as-temporary-solution-to.patch
@ -72,19 +72,7 @@ cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d/
%{_mandir}/man4/libinput.4*
%changelog
* Thu Dec 28 2023 Paul Thomas <paulthomas100199@gmail.com> - 1.4.0-1
- update to version 1.4.0
* Fri Jul 14 2023 zhangpan <zhangpan103@h-partners.com> - 1.3.0-1
- update to 1.3.0
* Fri Feb 03 2023 zhangpan <zhangpan@h-partners.com> - 1.2.1-1
- update to 1.2.1
* Tue Oct 25 2022 wangkerong <wangkerong@h-partners.com> - 1.2.0-2
- rebuild for next release
* Thu Nov 11 2021 yangcheng<yangcheng87@huawei.com> - 1.2.0-1
* Tue Nov 11 2021 yangcheng<yangcheng87@huawei.com> - 1.2.0-1
- Upgrade to 1.2.0-1
* Mon Jul 20 2020 chengguipeng<chengguipeng1@huawei.com> - 0.30.0-1