[PATCH v4 libinput 3/3] touchpad: add wobbling detection

2018-02-28 Thread Peter Hutterer
From: Konstantin Kharlamov The details are explained in comment in the code. That aside, I shall mention the check is so light, that it shouldn't influence CPU performance even a bit, and can blindly be kept always enabled. Bugzilla:

[PATCH v4 libinput 1/3] touchpad: move the hysteresis into its own substruct

2018-02-28 Thread Peter Hutterer
Prep work for the wobbling detection patch Signed-off-by: Peter Hutterer --- New in this series src/evdev-mt-touchpad.c | 10 +- src/evdev-mt-touchpad.h | 4 +++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/evdev-mt-touchpad.c

[PATCH v4 libinput 2/3] touchpad: remove the code for disabling hysteresis

2018-02-28 Thread Peter Hutterer
From: Konstantin Kharlamov Signed-off-by: Konstantin Kharlamov Signed-off-by: Peter Hutterer --- Changes to v3: - rebased for patch 1/3 src/evdev-mt-touchpad.c | 21 + 1 file changed, 1 insertion(+), 20

[PATCH libinput 1/5] test: don't run the MT pressure test on devices without MT pressure

2018-02-28 Thread Peter Hutterer
This test worked because on devices that don't use pressure the touches were reset when BTN_TOUCH when to 0, triggering the 'ignore fake fingers when no real fingers are down' behavior. But this is a different code path than the pressure handling, so let's separate those tests. Signed-off-by:

[PATCH libinput 5/5] touchpad: add a TOUCH_MAYBE_END state

2018-02-28 Thread Peter Hutterer
This state is used by the pre-processing of the touch states to indicate that the touch point has ended and is changed to TOUCH_END as soon as that pre-processing is finished. Sometimes we have to resurrect a touch point that has physically or logically ended but needs to be kept around to keep

[PATCH libinput 2/5] test: don't run the 2fg pressure test on single-touch touchpads

2018-02-28 Thread Peter Hutterer
Only the appletouch has pressure and thus executed that code path Signed-off-by: Peter Hutterer --- test/test-touchpad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-touchpad.c b/test/test-touchpad.c index 836640b7..bf342b95 100644 ---

[PATCH libinput 4/5] touchpad: don't end below-threshold pressure touches if nfake_fingers > nslots

2018-02-28 Thread Peter Hutterer
If we have more BTN_TOOL_*TAP fingers down than we have slots, ignore any below-threshold pressure changes on the slots. When a touchpad only detects two touches, guessing whether the third touch has sufficient pressure is unreliable. Instead, always assume that all touches have sufficient

[PATCH libinput] tools: add the git version in the libinput-record output

2018-02-28 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- meson.build | 5 + src/libinput-git-version.h.in | 3 +++ tools/libinput-record.c | 2 ++ 3 files changed, 10 insertions(+) create mode 100644 src/libinput-git-version.h.in diff --git a/meson.build

[PATCH wayland v2 2/4] wayland-egl: fail the symbol check if lib is missing

2018-02-28 Thread Emil Velikov
From: Emil Velikov Based on a similar patch (in Mesa) by Eric Engestrom. v2: Rebase on top of $NM patch. Reviewed-by: Eric Engestrom Signed-off-by: Emil Velikov --- egl/wayland-egl-symbols-check | 10 +- 1

[PATCH wayland v2 3/4] wayland-egl: enhance the symbol test

2018-02-28 Thread Emil Velikov
From: Emil Velikov The current test had a few fall-outs: - it was checking only for T (.text) symbols - did not consider symbol removal Fix that by fetching all the symbols and doing a bidirectional check - for added and removed symbols. Error out with informative

[PATCH wayland v2 4/4] wayland-egl: bump the version number to 18.1.0

2018-02-28 Thread Emil Velikov
From: Emil Velikov Seems like I was overoptimistic with my earlier assumption, namely: "... 17.3.x should be the last version that ships the library." Mesa 18.0.0 and its wayland-egl is about to be released any time soon, so bump the number since it must no be

[PATCH wayland v2 1/4] Revert "wayland-egl-symbols-check: pass the DSO name via the build system"

2018-02-28 Thread Emil Velikov
This reverts commit 85cb5ed64aa8246f4da93fc5b76dfc34096bf803. It seems like we've misread the existing code - the DSO name can be propagated via the build-system. The one available in the script was a simple fall-back. v2: Rebase on top of $NM patch. Cc: Daniel Stone ---