Smudge adjustment and patch for Qt tablet in relative mode

My tablet was not responding as expected due to a Qt 4.8 bug (the famous
Wacom tablet in relative mode conflict) but there is a solution: the
changed line does exactly the same job but it prevents from large Wacom
coordinate differences.