Added motion event compression in xcb plugin.
authorSamuel Rødal <samuel.rodal@digia.com>
Fri, 9 Nov 2012 17:16:04 +0000 (18:16 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 9 Nov 2012 17:51:40 +0000 (18:51 +0100)
commitd729ca5ece6a9cfa0a3e90af96142da59b8cd796
treee24fb6a8b425c662513fc20a508f965e71407c51
parente5eeffbf8b286fd80a1c3b66c80692cbec4fa72e
Added motion event compression in xcb plugin.

We did this in 4.8 too, to avoid swamping the event queue with stale
motion events. If you're interested in fine grained motion events you
just need to have a responsive main loop. Most applications are only
interested in the latest mouse position in any case.

Fixes performance issues in QML where an onMouseXChanged or
onMouseYChanged in a mouse area does directly or indirectly runs some
heavy computations, slowing rendering to a halt since the main loop is
constantly busy.

Change-Id: I169c96458db4d57b689d6c2c915765b11c35e123
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
src/plugins/platforms/xcb/qxcbconnection.cpp