clutter/evdev: Fix absolute pointer motion events

https://bugzilla.redhat.com/show_bug.cgi?id=1369492
This commit is contained in:
Kalev Lember 2016-08-29 18:16:33 +02:00
parent 4dca6fb2cb
commit a06e364341
2 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,30 @@
From fcc5c1e6c05f117497a71ffbb551a8f36d0b929b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
Date: Mon, 29 Aug 2016 23:10:17 +0800
Subject: [PATCH] clutter/evdev: Fix absolute pointer motion events
Absolute pointer events sent the X coordinate as both X and Y. This
caused input issues when running as a virtual machine if the virtual
machine used absolute pointer events instead of emulating a regular
mouse type (i.e. relative) device.
https://bugzilla.gnome.org/show_bug.cgi?id=770557
---
clutter/clutter/evdev/clutter-seat-evdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clutter/clutter/evdev/clutter-seat-evdev.c b/clutter/clutter/evdev/clutter-seat-evdev.c
index 5ef3ae4..f5ae1dd 100644
--- a/clutter/clutter/evdev/clutter-seat-evdev.c
+++ b/clutter/clutter/evdev/clutter-seat-evdev.c
@@ -421,7 +421,7 @@ void clutter_seat_evdev_notify_absolute_motion (ClutterSeatEvdev *seat,
{
ClutterEvent *event;
- event = new_absolute_motion_event (seat, input_device, time_us, x, x, axes);
+ event = new_absolute_motion_event (seat, input_device, time_us, x, y, axes);
queue_event (event);
}
--
2.7.4

View File

@ -5,7 +5,7 @@
Name: mutter Name: mutter
Version: 3.21.90 Version: 3.21.90
Release: 2%{?dist} Release: 3%{?dist}
Summary: Window and compositing manager based on Clutter Summary: Window and compositing manager based on Clutter
Group: User Interface/Desktops Group: User Interface/Desktops
@ -13,6 +13,8 @@ License: GPLv2+
#VCS: git:git://git.gnome.org/mutter #VCS: git:git://git.gnome.org/mutter
URL: http://www.gnome.org URL: http://www.gnome.org
Source0: http://download.gnome.org/sources/%{name}/3.21/%{name}-%{version}.tar.xz Source0: http://download.gnome.org/sources/%{name}/3.21/%{name}-%{version}.tar.xz
# https://bugzilla.gnome.org/show_bug.cgi?id=770557
Patch0: clutterevdev-Fix-absolute-pointer-motion-events.patch
BuildRequires: chrpath BuildRequires: chrpath
BuildRequires: pango-devel BuildRequires: pango-devel
@ -106,6 +108,7 @@ the functionality of the installed %{name} package.
%prep %prep
%setup -q %setup -q
%patch0 -p1
%build %build
autoreconf -f -i autoreconf -f -i
@ -180,6 +183,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%{_datadir}/mutter/tests %{_datadir}/mutter/tests
%changelog %changelog
* Mon Aug 29 2016 Kalev Lember <klember@redhat.com> - 3.21.90-3
- clutter/evdev: Fix absolute pointer motion events (#1369492)
* Sat Aug 20 2016 Kalev Lember <klember@redhat.com> - 3.21.90-2 * Sat Aug 20 2016 Kalev Lember <klember@redhat.com> - 3.21.90-2
- Update minimum dep versions - Update minimum dep versions