diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-07-26 01:48:02 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-07-26 17:03:18 -0400 |
commit | 99d9996c5c3b47c14c8717c7dd4692a25b83b3f7 (patch) | |
tree | 1f3cd43a057f3438af2965309c8eb81f462b5186 /drivers/input/mouse | |
parent | 68c21870179d78ab7375da432e8dd753d4dc2ba0 (diff) |
Input: alps - report 2 touches when we've > 2 fingers
If we detect more then 2 fingers report 2 touches, rather then only
reporting the upper left corner of the bounding box.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse')
-rw-r--r-- | drivers/input/mouse/alps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/alps.c b/drivers/input/mouse/alps.c index f16fe7c7d215..5026600278d3 100644 --- a/drivers/input/mouse/alps.c +++ b/drivers/input/mouse/alps.c | |||
@@ -454,7 +454,7 @@ static void alps_report_semi_mt_data(struct psmouse *psmouse, int fingers) | |||
454 | fingers = f->pressure > 0 ? 1 : 0; | 454 | fingers = f->pressure > 0 ? 1 : 0; |
455 | } | 455 | } |
456 | 456 | ||
457 | alps_report_mt_data(psmouse, (fingers <= 2) ? fingers : 1); | 457 | alps_report_mt_data(psmouse, (fingers <= 2) ? fingers : 2); |
458 | 458 | ||
459 | input_mt_report_finger_count(dev, fingers); | 459 | input_mt_report_finger_count(dev, fingers); |
460 | 460 | ||