[PATCH synaptics v2 12/21] Don't store fake events in the motion history
Daniel Stone
daniel at fooishbar.org
Tue Jun 14 10:06:00 PDT 2011
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 at fooishbar.org>
---
src/synaptics.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
v2: New; split out from regress() addition.
diff --git a/src/synaptics.c b/src/synaptics.c
index 4396e6e..00d51fe 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -2623,7 +2623,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;
--
1.7.5.3
More information about the xorg-devel
mailing list