mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-27 01:00:06 +01:00
touchpad: remove duplicate if condition
This was never true, we for the first part 3 lines above and return early. So
if we get here, it's always false.
commit aa87d2b25b added the new condition above, so since then this code
was inactive and can be removed.
https://bugs.freedesktop.org/show_bug.cgi?id=104279
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
61bdc05fb0
commit
4da9d51b67
1 changed files with 0 additions and 8 deletions
|
|
@ -1284,14 +1284,6 @@ tp_need_motion_history_reset(struct tp_dispatch *tp)
|
|||
if (tp->nfingers_down != tp->old_nfingers_down)
|
||||
return true;
|
||||
|
||||
/* if we're transitioning between slots and fake touches in either
|
||||
* direction, we may get a coordinate jump
|
||||
*/
|
||||
if (tp->nfingers_down != tp->old_nfingers_down &&
|
||||
(tp->nfingers_down > tp->num_slots ||
|
||||
tp->old_nfingers_down > tp->num_slots))
|
||||
return true;
|
||||
|
||||
/* Quirk: if we had multiple events without x/y axis
|
||||
information, the next x/y event is going to be a jump. So we
|
||||
reset that touch to non-dirty effectively swallowing that event
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue