[PATCH 11/23] Don't store fake events in the motion history

Daniel Stone daniel at fooishbar.org
Thu Jun 23 15:12:46 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(-)

diff --git a/src/synaptics.c b/src/synaptics.c
index 76d32f6..11a1584 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -2600,7 +2600,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.4



More information about the xorg-devel mailing list