[PATCH xserver xi2.1] Only check non-finished touches when finding indirect touch sprites
Chase Douglas
chase.douglas at canonical.com
Mon Jan 24 08:52:31 PST 2011
Should be squashed into big xi2.1 patch.
Signed-off-by: Chase Douglas <chase.douglas at canonical.com>
---
Xi/exevents.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Xi/exevents.c b/Xi/exevents.c
index fbe5912..96689e4 100644
--- a/Xi/exevents.c
+++ b/Xi/exevents.c
@@ -991,7 +991,8 @@ EnsureTouchSprite(DeviceIntPtr sourcedev, TouchPointInfoPtr ti,
/* Find and reuse an existing touch's sprite if possible, else use the
* device's sprite. */
for (i = 0; i < t->num_touches; i++)
- if (t->touches[i].sprite.spriteTraceGood > 0)
+ if (!t->touches[i].pending_finish &&
+ t->touches[i].sprite.spriteTraceGood > 0)
break;
if (i < t->num_touches)
srcsprite = &t->touches[i].sprite;
--
1.7.2.3
More information about the xorg-devel
mailing list