summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2011-06-14 17:24:24 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2011-08-25 09:50:33 +1000
commitc8b098214b44cf0585d78c460401ea7d143769f3 (patch)
treed2926bf2ee48cb6690fbad9f705aabc955fb5244
parent458c7251295e767fae7a0ac3366212361bce25a6 (diff)
Don't store fake events in the motion history
As the subject says: don't store any synthesised events in the motion history, since we can recreate those algorithmically. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/synaptics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/synaptics.c b/src/synaptics.c
index 3bf1653..9a651b3 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -2589,7 +2589,7 @@ HandleState(InputInfoPtr pInfo, struct SynapticsHwState *hw, CARD32 now,
priv->lastButtons = buttons;
/* generate a history of the absolute positions */
- if (inside_active_area)
+ if (inside_active_area && !from_timer)
store_history(priv, hw->x, hw->y, hw->millis);
return delay;