Fix synthesizing mouse events when touches change ordering
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Mon, 23 Jan 2012 08:28:58 +0000 (10:28 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 23 Jan 2012 12:10:00 +0000 (13:10 +0100)
commit7ed6a247bfcf314b4a7bc8332b813b3e92997e41
tree827621c7626ab7a4ddad67f2155267f100c5ebd8
parent141e5c3878cb13d1cfb5b2834193f64e620f5d99
Fix synthesizing mouse events when touches change ordering

There is no guarantee the touches will be listed in the same order in
an update: the platform/generic plug-in, the drivers, etc. are all
free to shuffle the list of touch points in each report (even though
the order is fairly stable with most systems).

Therefore, to be safe, move and release events should be generated not
from the first point in the list but from the one with the matching
id.

Change-Id: I6615224cbf2cfdc440143eb3191482a23d85c6a4
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/kernel/qguiapplication.cpp
src/gui/kernel/qguiapplication_p.h
tests/auto/gui/kernel/qwindow/tst_qwindow.cpp