projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
363ff3a
)
touchpad: replace hardcoded resolution > 1
author
Peter Hutterer
<peter.hutterer@who-t.net>
Wed, 3 Jun 2015 01:30:11 +0000
(11:30 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Wed, 3 Jun 2015 04:43:58 +0000
(14:43 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
src/evdev-mt-touchpad.c
patch
|
blob
|
history
diff --git
a/src/evdev-mt-touchpad.c
b/src/evdev-mt-touchpad.c
index aa9fa57aa22e3685e5abd6c5fd257755fca740dd..24f33f46f80edea4339fae985ffbef5783550713 100644
(file)
--- a/
src/evdev-mt-touchpad.c
+++ b/
src/evdev-mt-touchpad.c
@@
-1273,7
+1273,7
@@
tp_init_accel(struct tp_dispatch *tp, double diagonal)
* and y resolution, so that a circle on the
* touchpad does not turn into an elipse on the screen.
*/
- if (
res_x > 1 && res_y > 1
) {
+ if (
!tp->device->abs.fake_resolution
) {
tp->accel.x_scale_coeff = (DEFAULT_MOUSE_DPI/25.4) / res_x;
tp->accel.y_scale_coeff = (DEFAULT_MOUSE_DPI/25.4) / res_y;
} else {