xcb: send QTabletEvent before QMouseEvent
authorShawn Rutledge <shawn.rutledge@digia.com>
Wed, 19 Aug 2015 13:22:53 +0000 (15:22 +0200)
committerShawn Rutledge <shawn.rutledge@theqtcompany.com>
Wed, 19 Aug 2015 14:14:21 +0000 (14:14 +0000)
commitcc6a06632b26c4f60cb29f540af6eafc31ae3f02
treef154a19951a8b964c65e9582fa221beaf1fbbd64
parent6a57a260fc1ce8250fef4ed6e0242ac933c7ee56
xcb: send QTabletEvent before QMouseEvent

It was a regression: drawing applications which can handle both mouse
and tablet events should not need to wait to see whether a mouse event
will be followed by a corresponding tablet event.  The tablet event is
preferred because it has all the tablet parameters (pressure etc.)
Also, show the timestamp of each mouse event in the log message,
which helps to verify the correspondence.

Task-number: QTBUG-47702
Change-Id: I9e832c19de935ec1243138eb4c1484284f61cbfc
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
src/plugins/platforms/xcb/qxcbconnection_xi2.cpp
src/plugins/platforms/xcb/qxcbwindow.cpp