Skip to content

Commit

Permalink
Input: alps - report 2 touches when we've > 2 fingers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans de Goede authored and Dmitry Torokhov committed Jul 26, 2014
1 parent 68c2187 commit 99d9996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/mouse/alps.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ static void alps_report_semi_mt_data(struct psmouse *psmouse, int fingers)
fingers = f->pressure > 0 ? 1 : 0;
}

alps_report_mt_data(psmouse, (fingers <= 2) ? fingers : 1);
alps_report_mt_data(psmouse, (fingers <= 2) ? fingers : 2);

input_mt_report_finger_count(dev, fingers);

Expand Down

0 comments on commit 99d9996

Please sign in to comment.