summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Kharlamov <Hi-Angel@yandex.ru>2019-03-24 01:58:02 +0300
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-04-02 18:06:30 +0000
commit49c64bd1699780d9075806f79ac0270f0ea82d77 (patch)
tree86071071e728e2f6dcf8a14cc226a934a96f55e0
parentcd0d4c1bb54b809100444e6efc1f161054c43a8b (diff)
Xext: the check firstValuator ≤ 1 is duplicated in this branch
Correctness is ensured be checking md5sum result before and after the commit (it's the same). Fixes LGTM warning: "Comparison is always true because firstValuator <= 1." Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
-rw-r--r--Xext/xtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xext/xtest.c b/Xext/xtest.c
index 540d270a1..bf27eb590 100644
--- a/Xext/xtest.c
+++ b/Xext/xtest.c
@@ -382,7 +382,7 @@ ProcXTestFakeInput(ClientPtr client)
if ((flags & POINTER_ABSOLUTE) && firstValuator <= 1 && numValuators > 0) {
if (firstValuator == 0)
valuators[0] += root->drawable.pScreen->x;
- if (firstValuator < 2 && firstValuator + numValuators > 1)
+ if (firstValuator + numValuators > 1)
valuators[1 - firstValuator] += root->drawable.pScreen->y;
}
}