diff options
author | Peter Osterlund <petero2@telia.com> | 2003-11-11 16:29:09 +0100 |
---|---|---|
committer | Peter Osterlund <petero2@telia.com> | 2006-04-09 04:01:22 +0200 |
commit | 2252815be5479c5665b7d0de9a55760432ac514e (patch) | |
tree | 0f2272f2218b6c76d22df01456d63eea5e03bb8e | |
parent | 984f218d03d2a98856bf318d6665fa69ed02905b (diff) |
Do edge detection a little later in the HandleState()
function, so that it is not done at all when the touchpad is disabled.
-rw-r--r-- | synaptics.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synaptics.c b/synaptics.c index ef08830..f78e305 100644 --- a/synaptics.c +++ b/synaptics.c @@ -779,8 +779,6 @@ HandleState(LocalDevicePtr local, struct SynapticsHwState* hw) long timeleft; int i; - edge = edge_detection(priv, hw->x, hw->y); - dx = dy = 0; /* update finger position in shared memory */ @@ -831,6 +829,8 @@ HandleState(LocalDevicePtr local, struct SynapticsHwState* hw) hw->up = hw->down = FALSE; } + edge = edge_detection(priv, hw->x, hw->y); + finger = SynapticsDetectFinger(priv, hw); /* tap and drag detection */ |