rpms/gnome-settings-daemon/devel buttonmapping.patch, NONE, 1.1 gnome-settings-daemon.spec, 1.117, 1.118
Peter Hutterer
whot at fedoraproject.org
Wed Aug 26 04:33:47 UTC 2009
Author: whot
Update of /cvs/pkgs/rpms/gnome-settings-daemon/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24732
Modified Files:
gnome-settings-daemon.spec
Added Files:
buttonmapping.patch
Log Message:
* Wed Aug 26 2009 Peter Hutterer <peter.hutterer at redhat.com> 2.27.91-2
- buttonmapping.patch: Don't check for IsXExtensionDevice, only skip button
mappings for core devices instead (#502129).
buttonmapping.patch:
gsd-mouse-manager.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- NEW FILE buttonmapping.patch ---
>From 77e4a88e1a4abd72f036eb6fda208cb36faff162 Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer at who-t.net>
Date: Wed, 26 Aug 2009 09:48:06 +1000
Subject: [PATCH] Skip button mappings only for core devices.
Since server 1.4, devices are unlikely to be marked as IsXExtensionPointer.
More common is IsXExtensionKeyboard or IsXExtensionPointer.
However, with many pointer devices also having keys (e.g. most wireless
combos) a check for IsXExtensionPointer is unreliable.
In gsd-mouse-manager, skip the XInput button mapping only if the device is a
core device. Otherwise, test for buttons.
---
plugins/mouse/gsd-mouse-manager.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/plugins/mouse/gsd-mouse-manager.c b/plugins/mouse/gsd-mouse-manager.c
index 30e649d..7fae963 100644
--- a/plugins/mouse/gsd-mouse-manager.c
+++ b/plugins/mouse/gsd-mouse-manager.c
@@ -283,7 +283,8 @@ set_xinput_devices_left_handed (gboolean left_handed)
for (i = 0; i < n_devices; i++) {
XDevice *device = NULL;
- if ((device_info[i].use != IsXExtensionPointer) ||
+ if ((device_info[i].use == IsXPointer) ||
+ (device_info[i].use == IsXKeyboard) ||
(!xinput_device_has_buttons (&device_info[i])))
continue;
--
1.6.3.rc1.2.g0164.dirty
Index: gnome-settings-daemon.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gnome-settings-daemon/devel/gnome-settings-daemon.spec,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -p -r1.117 -r1.118
--- gnome-settings-daemon.spec 25 Aug 2009 01:55:38 -0000 1.117
+++ gnome-settings-daemon.spec 26 Aug 2009 04:33:47 -0000 1.118
@@ -1,6 +1,6 @@
Name: gnome-settings-daemon
Version: 2.27.91
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: The daemon sharing settings from GNOME to GTK+/KDE applications
Group: System Environment/Daemons
@@ -36,6 +36,8 @@ BuildRequires: fontconfig-devel
Patch12: gnome-settings-daemon-2.26.1-fix-touchpad.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=524499
Patch13: locate-pointer-process.patch
+# http://bugzilla.gnome.org/show_bug.cgi?id=593112
+Patch14: buttonmapping.patch
%description
A daemon to share settings from GNOME to other applications. It also
@@ -57,6 +59,7 @@ developing applications that use %{name}
%patch12 -p1 -b .lefthand-touchpad
%patch13 -p1 -b .locate-pointer
+%patch14 -p1 -b .buttonmap
autoreconf -i -f
@@ -170,6 +173,10 @@ fi
%{_libdir}/pkgconfig/gnome-settings-daemon.pc
%changelog
+* Wed Aug 26 2009 Peter Hutterer <peter.hutterer at redhat.com> 2.27.91-2
+- buttonmapping.patch: Don't check for IsXExtensionDevice, only skip button
+ mappings for core devices instead (#502129).
+
* Mon Aug 24 2009 Bastien Nocera <bnocera at redhat.com> 2.27.91-1
- Update to 2.27.91
More information about the fedora-extras-commits
mailing list