Do not send stationary points
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Mon, 16 Jan 2012 06:51:18 +0000 (08:51 +0200)
committerJørgen Lind <jorgen.lind@nokia.com>
Mon, 16 Jan 2012 07:03:54 +0000 (08:03 +0100)
Change-Id: Id534965df614bcbff3bfe5f8fd5484c370222196
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
src/compositor/wayland_wrapper/wltouch.cpp

index 8bca875..76b15fb 100644 (file)
@@ -112,6 +112,10 @@ void TouchExtensionGlobal::postTouchEvent(QTouchEvent *event, Surface *surface)
 
         for (int i = 0; i < pointCount; ++i) {
             const QTouchEvent::TouchPoint &tp(points.at(i));
+            // Stationary points are never sent. They are cached on client side.
+            if (tp.state() == Qt::TouchPointStationary)
+                continue;
+
             uint32_t id = tp.id();
             uint32_t state = tp.state();
             uint32_t flags = tp.flags();