Windows: Fix tablet position in relative (mouse) mode.
authorArthur Krebsbach <Arthur.Krebsbach@Wacom.com>
Tue, 8 Oct 2013 15:51:23 +0000 (08:51 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 16 Oct 2013 06:16:33 +0000 (08:16 +0200)
commitc2f6d747ea997e0ba6bb970f5ec18ae3fe68514d
tree610d76b065eab6d398bef1ad41016fedb37660f0
parent0726127285413829f58618b5b82fb3e2da0c3a74
Windows: Fix tablet position in relative (mouse) mode.

When in "mouse" or "relative" mode with the pen position information
would not be calculated correctly resulting in a significant offset
between the tablet pen location and the mouse cursor location. Logic
was added to detect when the two were not in sync and use the mouse
location when this happens.

Change-Id: Id3db5f2de0a657a0d072cee95c6b27179ea9182a
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
(cherry picked from qtbase/17ebcd2b4690f73c8fd2332b0ba55b3ee3e2e8bb)
src/gui/kernel/qapplication_win.cpp