rpms/gnome-settings-daemon/F-11 gsd-2.26.1-left-handed-touchpad.patch, NONE, 1.1
Bastien Nocera
hadess at fedoraproject.org
Fri May 8 01:41:12 UTC 2009
- Previous message (by thread): rpms/xorg-x11-drv-nouveau/F-10 xorg-x11-drv-nouveau.spec,1.8,1.9
- Next message (by thread): rpms/anaconda/F-11 .cvsignore, 1.641, 1.642 anaconda.spec, 1.792, 1.793 sources, 1.775, 1.776 anaconda-efi.patch, 1.4, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: hadess
Update of /cvs/pkgs/rpms/gnome-settings-daemon/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12650
Added Files:
gsd-2.26.1-left-handed-touchpad.patch
Log Message:
Add untested patch for #483639
gsd-2.26.1-left-handed-touchpad.patch:
--- NEW FILE gsd-2.26.1-left-handed-touchpad.patch ---
--- gnome-settings-daemon-2.26.1.old/plugins/mouse/gsd-mouse-manager.c 2009-05-08 02:25:09.000000000 +0100
+++ gnome-settings-daemon-2.26.1/plugins/mouse/gsd-mouse-manager.c 2009-05-08 02:34:53.000000000 +0100
@@ -549,12 +549,24 @@ set_tap_to_click (gboolean state)
if (rc == Success && type == XA_INTEGER && format == 8 && nitems >= 7)
{
- /* Set RLM mapping for 1/2/3 fingers*/
- data[4] = (state) ? 1 : 0;
- data[5] = (state) ? 3 : 0;
- data[6] = (state) ? 2 : 0;
- XChangeDeviceProperty(GDK_DISPLAY(), device, prop, XA_INTEGER, 8,
- PropModeReplace, data, nitems);
+ GConfClient *client = gconf_client_get_default ();
+ gboolean left_handed;
+
+ if (gconf_client_get_bool (client, KEY_LEFT_HANDED, NULL)) {
+ /* Set RLM mapping for 1/2/3 fingers*/
+ data[4] = (state) ? 1 : 0;
+ data[5] = (state) ? 3 : 0;
+ data[6] = (state) ? 2 : 0;
+ } else {
+ /* Set RLM mapping for 1/2/3 fingers, but swap
+ * the left and right, so tapping left-handed is
+ * still a left-click */
+ data[4] = (state) ? 3 : 0;
+ data[5] = (state) ? 1 : 0;
+ data[6] = (state) ? 2 : 0;
+ }
+ XChangeDeviceProperty(GDK_DISPLAY(), device, prop, XA_INTEGER, 8,
+ PropModeReplace, data, nitems);
}
if (rc == Success)
- Previous message (by thread): rpms/xorg-x11-drv-nouveau/F-10 xorg-x11-drv-nouveau.spec,1.8,1.9
- Next message (by thread): rpms/anaconda/F-11 .cvsignore, 1.641, 1.642 anaconda.spec, 1.792, 1.793 sources, 1.775, 1.776 anaconda-efi.patch, 1.4, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list