diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2012-01-16 08:51:18 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2012-01-16 08:03:54 +0100 |
commit | 9733e94b6f567d93f6bf3999a0875a0b98d3d008 (patch) | |
tree | 25f106b0b1fddfab94f2e0ccfb170dda1a832fdc /src/compositor/wayland_wrapper/wltouch.cpp | |
parent | 147c0f0cf373bf94c30dcd032248c9bbfa592f14 (diff) |
Do not send stationary points
Change-Id: Id534965df614bcbff3bfe5f8fd5484c370222196
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper/wltouch.cpp')
-rw-r--r-- | src/compositor/wayland_wrapper/wltouch.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compositor/wayland_wrapper/wltouch.cpp b/src/compositor/wayland_wrapper/wltouch.cpp index 8bca8755d..76b15fbeb 100644 --- a/src/compositor/wayland_wrapper/wltouch.cpp +++ b/src/compositor/wayland_wrapper/wltouch.cpp @@ -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(); |