Fix unsigned-signed comparison with touch id in input.cpp

The id we internally have is a signed int and might be negative, but
the touch id we get is unsigned. We can savely cast the unsigned to
signed as touch ids are recycled and more than 10 touch points is
unlikely to be useful.
icc-effect-5.14.5
Martin Gräßlin 2016-06-29 11:03:43 +02:00
parent 67f7e8da34
commit f9baa22f0d
1 changed files with 2 additions and 2 deletions

View File

@ -602,7 +602,7 @@ public:
if (input()->touch()->decorationPressId() == -1) {
return false;
}
if (input()->touch()->decorationPressId() != id) {
if (input()->touch()->decorationPressId() != qint32(id)) {
// ignore, but filter out
return true;
}
@ -622,7 +622,7 @@ public:
if (input()->touch()->decorationPressId() == -1) {
return false;
}
if (input()->touch()->decorationPressId() != id) {
if (input()->touch()->decorationPressId() != qint32(id)) {
// ignore, but filter out
return true;
}