summaryrefslogtreecommitdiff
path: root/extra/xf86-input-evdev/Fix_inverted_horizontal_scroll.diff
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-03-20 00:01:23 +0000
committerroot <root@rshg054.dnsready.net>2012-03-20 00:01:23 +0000
commit99136e3a2e9f6f07a7ff08d5721bce354b853c8b (patch)
tree3cd677128a00bc9501f93e27e53ebba72f44cd52 /extra/xf86-input-evdev/Fix_inverted_horizontal_scroll.diff
parentde5b6982e42f4a1e8b0537cfbc1b676e2a81f195 (diff)
Tue Mar 20 00:01:23 UTC 2012
Diffstat (limited to 'extra/xf86-input-evdev/Fix_inverted_horizontal_scroll.diff')
-rw-r--r--extra/xf86-input-evdev/Fix_inverted_horizontal_scroll.diff27
1 files changed, 27 insertions, 0 deletions
diff --git a/extra/xf86-input-evdev/Fix_inverted_horizontal_scroll.diff b/extra/xf86-input-evdev/Fix_inverted_horizontal_scroll.diff
new file mode 100644
index 000000000..93c54d300
--- /dev/null
+++ b/extra/xf86-input-evdev/Fix_inverted_horizontal_scroll.diff
@@ -0,0 +1,27 @@
+From 99340147b9092a5aaec997eca407282a51e1f063 Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer@who-t.net>
+Date: Thu, 15 Mar 2012 05:46:32 +0000
+Subject: Fix inverted horizontal scroll (#46205)
+
+REL_HWHEEL has a positive increment, not a negative one like REL_WHEEL.
+
+X.Org Bug 46205 <http://bugs.freedesktop.org/show_bug.cgi?id=46205>
+
+Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
+Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
+---
+diff --git a/src/evdev.c b/src/evdev.c
+index d540b87..8cf630c 100644
+--- a/src/evdev.c
++++ b/src/evdev.c
+@@ -1600,7 +1600,7 @@ EvdevAddRelValuatorClass(DeviceIntPtr device)
+ else if (axis == REL_DIAL)
+ SetScrollValuator(device, axnum, SCROLL_TYPE_VERTICAL, -1.0, SCROLL_FLAG_NONE);
+ else if (axis == REL_HWHEEL)
+- SetScrollValuator(device, axnum, SCROLL_TYPE_HORIZONTAL, -1.0, SCROLL_FLAG_NONE);
++ SetScrollValuator(device, axnum, SCROLL_TYPE_HORIZONTAL, 1.0, SCROLL_FLAG_NONE);
+ #endif
+ }
+
+--
+cgit v0.9.0.2-2-gbebe