Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 227138
b: refs/heads/master
c: 4f56ce9
h: refs/heads/master
v: v3
  • Loading branch information
Henrik Rydberg committed Dec 22, 2010
1 parent e6aadad commit e2f90a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fec6e5252b542e748871c88f8455e69ae73ea156
refs/heads/master: 4f56ce929cab45a3a6e1a81700da52bb9bdbfc0f
4 changes: 2 additions & 2 deletions trunk/drivers/input/mouse/synaptics.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ static void synaptics_process_packet(struct psmouse *psmouse)
return;
}

if (hw.z > 0) {
if (hw.z > 0 && hw.x > 1) {
num_fingers = 1;
finger_width = 5;
if (SYN_CAP_EXTENDED(priv->capabilities)) {
Expand Down Expand Up @@ -582,7 +582,7 @@ static void synaptics_process_packet(struct psmouse *psmouse)
if (hw.z > 30) input_report_key(dev, BTN_TOUCH, 1);
if (hw.z < 25) input_report_key(dev, BTN_TOUCH, 0);

if (hw.z > 0) {
if (num_fingers > 0) {
input_report_abs(dev, ABS_X, hw.x);
input_report_abs(dev, ABS_Y, YMAX_NOMINAL + YMIN_NOMINAL - hw.y);
}
Expand Down

0 comments on commit e2f90a2

Please sign in to comment.