- Listen for DeviceAdded signals when configuring mouse (in addition to

DeviceEnabled). This may help with bug 474758.
This commit is contained in:
Ray Strode 2008-12-10 15:58:31 +00:00
parent fd54fb7343
commit 9f9e1bcbae
2 changed files with 29 additions and 1 deletions

View File

@ -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;

View File

@ -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 <rstrode@redhat.com> - 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 <rstrode@redhat.com> - 2.25.2-5
- Shutdown cleanly on TERM signal (bug 445898)