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>
This commit is contained in:
parent
cd0d4c1bb5
commit
49c64bd169
|
@ -382,7 +382,7 @@ ProcXTestFakeInput(ClientPtr client)
|
||||||
if ((flags & POINTER_ABSOLUTE) && firstValuator <= 1 && numValuators > 0) {
|
if ((flags & POINTER_ABSOLUTE) && firstValuator <= 1 && numValuators > 0) {
|
||||||
if (firstValuator == 0)
|
if (firstValuator == 0)
|
||||||
valuators[0] += root->drawable.pScreen->x;
|
valuators[0] += root->drawable.pScreen->x;
|
||||||
if (firstValuator < 2 && firstValuator + numValuators > 1)
|
if (firstValuator + numValuators > 1)
|
||||||
valuators[1 - firstValuator] += root->drawable.pScreen->y;
|
valuators[1 - firstValuator] += root->drawable.pScreen->y;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue