From 9f9e1bcbaea30e71f6d9490cebff96092a851338 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Wed, 10 Dec 2008 15:58:31 +0000 Subject: [PATCH] - Listen for DeviceAdded signals when configuring mouse (in addition to DeviceEnabled). This may help with bug 474758. --- ...ings-daemon-2.24.0-catch-deviceadded.patch | 19 +++++++++++++++++++ gnome-settings-daemon.spec | 11 ++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 gnome-settings-daemon-2.24.0-catch-deviceadded.patch diff --git a/gnome-settings-daemon-2.24.0-catch-deviceadded.patch b/gnome-settings-daemon-2.24.0-catch-deviceadded.patch new file mode 100644 index 0000000..8e1d0ce --- /dev/null +++ b/gnome-settings-daemon-2.24.0-catch-deviceadded.patch @@ -0,0 +1,19 @@ +============================================================ + Listen for DeviceAdded in addition to DeviceEnabled + + This should help address problems like left-handed +mouse, and acceleration settings getting lost after +resume, or when new devices gets plugged in. + +diff --git a/plugins/mouse/gsd-mouse-manager.c b/plugins/mouse/gsd-mouse-manager.c +--- a/plugins/mouse/gsd-mouse-manager.c ++++ b/plugins/mouse/gsd-mouse-manager.c +@@ -320,7 +320,7 @@ devicepresence_filter (GdkXEvent *xevent, + if (xev->type == xi_presence) + { + XDevicePresenceNotifyEvent *dpn = (XDevicePresenceNotifyEvent *) xev; +- if (dpn->devchange == DeviceEnabled) ++ if (dpn->devchange == DeviceEnabled || dpn->devchange == DeviceAdded) + set_mouse_settings ((GsdMouseManager *) data); + } + return GDK_FILTER_CONTINUE; diff --git a/gnome-settings-daemon.spec b/gnome-settings-daemon.spec index 371cad3..abcba9b 100644 --- a/gnome-settings-daemon.spec +++ b/gnome-settings-daemon.spec @@ -1,6 +1,6 @@ Name: gnome-settings-daemon Version: 2.25.2 -Release: 5%{?dist} +Release: 6%{?dist} Summary: The daemon sharing settings from GNOME to GTK+/KDE applications Group: System Environment/Daemons @@ -42,6 +42,9 @@ Patch8: gnome-settings-daemon-2.25.2-fade.patch # http://bugzilla.redhat.com/445898 Patch9: gnome-settings-daemon-2.24.0-shutdown-cleanly.patch +# http://bugzilla.redhat.com/474758 +Patch10: gnome-settings-daemon-2.24.0-catch-deviceadded.patch + # http://bugzilla.gnome.org/show_bug.cgi?id=563543 Patch12: gnome-settings-daemon-2.24.1-umask.patch @@ -67,6 +70,7 @@ developing applications that use %{name}. %patch7 -p1 -b .fnf7-cycle %patch8 -p1 -b .fade %patch9 -p1 -b .shutdown-cleanly +%patch10 -p1 -b .catch-deviceadded %patch12 -p1 -b .umask %build @@ -171,6 +175,11 @@ fi %{_libdir}/pkgconfig/gnome-settings-daemon.pc %changelog +* Wed Dec 10 2008 Ray Strode - 2.25.2-6 +- Listen for DeviceAdded signals when configuring mouse + (in addition to DeviceEnabled). This may help with + bug 474758. + * Tue Dec 9 2008 Ray Strode - 2.25.2-5 - Shutdown cleanly on TERM signal (bug 445898)