From 49c64bd1699780d9075806f79ac0270f0ea82d77 Mon Sep 17 00:00:00 2001 From: Konstantin Kharlamov Date: Sun, 24 Mar 2019 01:58:02 +0300 Subject: [PATCH] =?UTF-8?q?Xext:=20the=20check=20firstValuator=20=E2=89=A4?= =?UTF-8?q?=201=20is=20duplicated=20in=20this=20branch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Xext/xtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }